Cari dalam skrip untuk "the script"
Renko with custom sourceThe script allows you to set custom date source for Renko chart through Format dialog.
YK Fuller BarsThe script highlights "Fuller's pins" and generates alerts when these bars are appearing
PriceCatch Auto Fibonacci - IOHello and Warm Greetings to Tradingview community.
PriceCatch Auto Fibonacci Levels
The Problem
One of the problems faced by traders who use Fibonacci levels is that they have to draw the levels manually on their charts. It's tedious and sometimes leads to inaccuracies in identifying correct levels.
Secondly, while there are so many Auto Fibonacci scripts available in the Public Scripts Library, most of them are not really useful as they are very limited in their capability for the following reasons:
either they are based on historical bars or historical pivots - user has to enter the number of historical bars or pivots for the starting point of the Fibonacci Levels.
they are time-frame dependent. This is a very serious limitation with most scripts.
they do not offer real and practical user settings.
many of them are not actually pure Fibonacci Levels scripts.
Limitations with other Auto Fibonacci scripts
Other Fibonacci scripts ask user to specify a number of historical bars or pivots to draw the Fibonacci levels. This is a major problem with such scripts - because 50 historical bars on the daily time frame changes to 50 historical bars on the 4H if you change the chart's time-frame to 4H, thereby altering the position of the Fibonacci levels. So, the desired view that the user seeks about price action is not what he/she gets whenever the time-frame changes. Similarly with specifying Pivots. For example, for a swing trader who specifies Pivots, the number of pivots that occur in one month varies depending on the chart's time-frame. So after trying these scripts, users quickly realize that they are not really all that useful.
PriceCatch Auto Fibonacci Levels - Unparalleled advantage
The PriceCatch Auto Fibonacci Levels script that I am publishing is completely different from other Fibonacci scripts on the TradingView Public Library. My script offers users unparalleled flexibility and options to use it effectively and to suit their trading style. With PriceCatch Auto Fibonacci Levels script, user has the ability to choose a variety of options to draw the Fibonacci levels from Current Day, Previous Day all the way up to 52 weeks. Not only that, users can also set their own levels via input options and that makes it even more adaptive to a user's specific needs. So, if you do not want 0.382 level and want the level to be at 0.312, yes, you can do that with this script.
Time-frame independence
This script works independent of the chart time frame and this is it's USP. So, while your chart may be set to 15 minutes time-frame, you can set the script to draw Fibonacci levels of Previous Week, last 3 days or any other available interval of your choice and it will draw it accurately. What's more, you can change your chart's time-frame to any interval of your choice and the Fibonnacci levels stay fixed and true to the chosen option. To my knowledge, none of the other scripts offer such a feature as they are dependent on the Chart's time frame.
The Difference
With the PriceCatch Auto Fibonacci Levels script, when user chooses Previous Month to draw Fibonacci levels, it only considers the high and low of previous month and this can never change. This makes it time-frame independent and actually helpful to the user because while the Fibonacci levels are drawn based on the chosen interval's high and low, user can then choose any chart time frame to trade on the drawn Fibonacci levels. This is the crucial difference and big advantage of PriceCatch Auto Fibonacci Levels script from other scripts.
Chart type independence
PriceCatch Auto Fibonacci Levels script is also independent of chart type. You can set your chart to Bars, Japanese, Hollow, Heikin-Ashi or even line style and this script accurately draws the Fibonacci levels as the logic is independent of chart type.
Practical and really useful
I have written the script after careful study of all the other available scripts and only then took on this project. Once you look at other scripts and what they lack, you will realize my script is all-rounded, very flexible with a wide variety of options to choose from. All of these features make PriceCatch Auto Fibonacci Levels script unique, very powerful and highly useful to traders.
Use Cases
Intraday
If you trade intraday, setting the interval to 3D (3 days) will give you Fibonacci levels of last three days. This may be useful in taking intraday trades by knowing probable support and resistance levels in that period. Then, you can trade on 1 minute, 3 minutes, 5 or any other intraday time frame of your choice.
Swing / Long term trading
For swing or long term traders, setting the interval to PM (previous month) or CQ (current quarter) will help you find probable support / resistance levels in that period that you can use to plan your trades. Then, of course, with the 52W setting, you can take a really long term view of the asset.
Multiple Advantage
Since you can add the script more than once to your chart, you can set one script to a longer time frame and another to a shorter one to form a combination of Fibonacci levels to give you even more precise and desired information about price action and to help you plan/manage your trades.
Some Samples
Tesla with CQ (Current Quarter) setting
Microsoft with CM (Current Month) setting
NVAX Bar Chart in 2H with PM (Previous Month) setting
NOTE - PRIOR TO USING THIS SCRIPT:
Please remember that the script is shared with absolutely no assurances about usability and any warranties whatsoever and as a responsible trader, please satisfy yourselves thoroughly and use it only if you are satisfied it works for you. Remember, you are 100% responsible for your actions. If you understand and accept that, you may use the script.
Why Invite only?
I merely want to know how many traders actually show interest to use it.
QUERIES/FEEDBACK
Please PM me.
I have to thank @BJORGUM for helping me out with this script.
Hope you find this script useful. Wish everyone all the best with trading.
Synthetic Price Action GeneratorNOTICE:
First thing you need to know, it "DOES NOT" reflect the price of the ticker you will load it on. THIS IS NOT AN INDICATOR FOR TRADING! It's a developer tool solely generating random values that look exactly like the fractals we observe every single day. This script's generated candles are as fake as the never ending garbage news cycles we are often force fed and expected to believe by using carefully scripted narratives peddled as hypnotic truth to psychologically and emotionally influence you to the point of control by coercion and subjugation. I wanted to make the script's synthetic nature very clear using that analogy, it's dynamically artificial. Do not accidentally become disillusioned by this scripts values, make trading decisions from it, and lastly don't become victim to predatory media magic ministry parrots with pretty, handsome smiles, compelling you to board their ferris wheel of fear. Now, on to the good stuff...
BACKSTORY:
Occasionally I find myself in situations where I have to build analyzers in Pine to actually build novel quantitative analytic indicators and tools worthy of future use. These analyzers certainly don't exist on this platform, but usually are required to engineer and tweak algorithms of the highest quality with the finest computational caliber. I have numerous other synthesizers to publish besides this one.
For many reasons, I needed a synthetic environment to utilize the analyzers I built in Pine, to even pursue building some exotic indicators and algorithms. Pine doesn't allow sourcing of tuples. Not to mention, I required numerous Pine advancements to make long held dreams into tangible realities. Many Pine upgrades have arrived and MANY, MANY more are in need of implementation for all. Now that I have this, intending to use it in the future often when in need, you can now use it too. I do anticipate some skilled Pine poets will employ this intended handy utility to design and/or improved indicators for trading.
ORIGIN:
This was inspired by the brilliance from the world renowned ALGOmist John F. Ehlers, but it's taken on a completely alien form from its original DNA. Browsing on the internet for something else, I came across an article with a small code snippet, and I remembered an old wish of mine. I have long known that by flipping back and forth on specific tickers and timeframes in my Watchlist is not the most efficient way to evaluate indicators in multiple theatres of price action. I realized, I always wanted to possess and use this sort of tool, so... I put it into Pine form, but now have decided to inject it with Pine Script steroids. The outcome is highly mutable candle formations in a reusable mutagenic package, observable above and masquerading as genuine looking price candles.
OVERVIEW:
I guess you could call it a price action synthesizer, but I entitled it "Synthetic Price Action Generator" for those who may be searching for such a thing. You may find this more useful on the All or 5Y charts initially to witness indication from beginning (barstate.isfirst === barindex==0) to end (last_bar_index), but you may also use keyboard shortcuts + + to view the earliest plottable bars on any timeframe. I often use that keyboard shortcut to qualify an indicator through the entirety of it's runtime.
A lot can go wrong unexpectedly with indicator initialization, and you will never know it if you don't inspect it. Many recursively endowed Infinite Impulse Response (IIR) Filters can initialize with unintended results that minutely ring in slightly erroneous fashion for the entire runtime, beginning to end, causing deviations from "what should of been..." values with false signals. Looking closely at spg(), you will recognize that 3 EMAs are employed to manage and maintain randomness of CLOSE, HIGH, and LOW. In fact, any indicator's barindex==0 initialization can be inspected with the keyboard shortcuts above. If you see anything obviously strange in an authors indicator, please contact the developer if possible and respectfully notify them.
PURPOSE:
The primary intended application of this script, is to offer developers from advanced to even novice skill levels assistance with building next generation indicators. Mostly, it's purpose is for testing and troubleshooting indicators AND evaluating how they perform in a "manageable" randomized environment. Some times indicators flake out on rare but problematic price fluctuations, and this may help you with finding your issues/errata sooner than later. While the candles upon initial loading look pristine, by tweaking it to the minval/maxval parameters limits OR beyond with a few code modifications, you can generate unusual volatility, for instance... huge wicks. Limits of minval= and maxval= of are by default set to a comfort zone of operation. Massive wicks or candle bodies will undoubtedly affect your indication and often render them useless on tickers that exhibit that behavior, like WGMCF intraday currently.
Copy/paste boundaries are provided for relevant insertion into another script. Paste placement should happen at the very top of a script. Note that by overwriting the close, open, high, etc... values, your compiler will give you generous warnings of "variable shadowing" in abundance, but this is an expected part of applying it to your novel script, no worries. plotcandle() can be copied over too and enabled/disabled in Settings->Style. Always remember to fully remove this scripts' code and those assignments properly before actual trading use of your script occurs, AND specifically when publishing. The entirety of this provided code should never, never exist in a published indicator.
OTHER INTENTIONS:
Even though these are 100% synthetic generated price points, you will notice ALL of the fractal pseudo-patterns that commonly exist in the markets, are naturally occurring with this generator too. You can also swiftly immerse yourself in pattern recognition exercises with increased efficiency in real time by clicking any SPAG Setting in focus and then using the up/down arrow keys. I hope I explained potential uses adequately...
On a personal note, the existence of fractal symmetry often makes me wonder, do we truly live in a totality chaotic universe or is it ordered mathematically for some outcomes to a certain extent. I think both. My observations, it's a pre-deterministic reality completely influenced by infinitesimal amounts of sentient free will with unimaginable existing and emerging quantities. Some how an unknown mysterious mechanism governing the totality of universal physics and mathematics counts this 100.0% flawlessly and perpetually. Anyways, you can't change the past that long existed before your birth or even yesterday, but you can choose to dream, create, and forge the future into your desires and hopes. As always, shite always happens when your not looking for it. What you choose to do after stepping in it unintentionally... is totally up to you. :) Maybe this tool and tips provided will aid you in not stepping in an algo cachucha up to your ankles somehow.
SCRIPTING LESSONS PORTRAYED IN THIS SCRIPT:
Pine etiquette and code cleanliness
Overwrite capabilities of built-in Pine variables for testing indicators
Various techniques to organize Settings panel while providing ease of adjustment utility
Use of tooltip= to provide users adequate valuable information. Most people want to trade with indicators, not blindly make adjustments to them without any knowledge of their intended operation/effects
When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members , I may implement more ideas when they present themselves as worthy additions. Have a profitable future everyone!
[blackcat] L5 Renko MasterLevel: 5
Background
Like many people in the Tradingview community, I have been studying how to apply Renko charts to backtesting and live trading for long. However, as we all know, the official Tradingview Renko chart is not recommended for backtesting because it will lead to unrealistic backtesting results. So, I thought about developing a set of customized Renko charts that can be used for backtesting and second-level trading. This "L5 Renko Master" is one of them that I am introducing today.
In fact, this is not a Renko chart based on Tick's principle. It is based on OHLC data, because this kind of chart can be used for reliable backtesting and trading in Tradingview. Therefore, the Renko Master in this script can actually coexist with the standard Japanese candlestick chart, but the trend reversal information it prompts is based on a principle similar to Renko. When the two can coexist and produce trading signals at the same time, this is really a very interesting invention.
Function
First of all, this Renko chart can coexist in the main chart with the Japanese candlestick chart. It can support up to 1 second level of display and trading. By configuring two parameters, you can adapt it to different Time Frames.
Secondly, this Renko chart can be used for backtesting strategies, because it is essentially OHLC data. Although the absolute value of the price cannot correspond to the original OHLC one-to-one, the certainty of the trend reversal is relatively high. It can be compared with Japanese candlesticks on the timeline.
Finally, this Renko chart is embedded with a Renko intrinsic trading strategy, which can be used to locate entry points through red and green labels. This strategy supports Tradingview alerts. You can get "LONG" or "SHORT" trading reminders by creating alerts. In order to obtain a clear market structure, Zen Stroke (Autolength ZigZag) and Zen Kiss (Special Moving Averages) can be checked to be superimposed and displayed on the main chart to facilitate understanding of the temporal and spatial position of prices in the market.
Indicator Set
Renko Master Boxes (砖块图)
Zen Stroke (Auto ZigZag , 自动画缠论笔)
Zen Kiss Moving Averages (缠论均线)
Inputs
Price --> Price source used to produce Renko, close is default.
RefBarBack --> Lookback period length to calculate Renko. The larger value, the less sensitive to price ripples and sideways.
BoxPerc --> Internal box percentage input. The larger value, the less sensitive to price ripples and sideways.
Show Zen Stroke (AutoLen ZigZag)? --> Switch to turn on and off ZigZag.
Shown Renko MA? --> Switch to turn on and off special moving averages.
Key Signal
Bricks
Green bricks for up trend
Red bricks for down trend
Labels
Green labels for buy/long.
Red labels for sell/short.
Zen Stroke (ZigZag)
Green line section for up stroke
Red line section for down stroke
Moving Averages
Yellow for fast line
Fuchsia for slow line
Pros and Cons
Suitable for discretionary trading and bots via alerts. However, only well selected trading pair and time frame can guarantee bot works.
Intuitive and effective, the output signal is more reliable after multi-indicator resonance
Remarks
My third L5 indicator published
Closed-source
Invite-only
Redeem Fee Life Lock Guarantee
Although I take the efforts to inform the script requesters that the best way to promote trading skills is to learn from the open source scripts I released by themself and to improve their PNIE script programming skills, there are still many people asking how to obtain or pay to use BLACKCAT L4/L5 private scripts. In fact, I do not encourage people to use Tradingview Coins ( TVC ) / Cryptocurrency to redeem the right to use BLACKCAT L4/L5 scripts. However, redeeming private script usage rights through TV Coins/ Cryptocurrency may be an effective way to force more people to learn PINE script programming seriously. And then I can concentrate on answering more valuable community questions instead of being overwhelmed by L4/L5 scripting permission reqeusts.
I would like to announce a ‘Redeem Fee Lock Guarantee’ program to further simplify the L4/L5 indicator/strategy utility offering and distinguish itself from the competition. ‘Redeem Fee lock guarantee’ is one of the major initiatives by BLACKCAT as a part of overall value packaging designed to guard BLACKCAT’s followers’ against cost-overruns and operational risks usually borne by them when it comes to PINE script innovation ecosystem. The TVCs redeemed for L4/L5 a follower signs up for with BLACKCAT is their guaranteed lifetime locked in TVC Quantity/ cryptocurrency, with no special conditions, exclusions and fine print whatsoever. Based on this scheme, I can constantly refine, expand, upgrade and improve PINE script publishing to ensure the very best experiences for my followers. The 'Redeem Fee Lock Guarantee' is a step in the direction of rewarding the valuable followers. NOTE: Every L4/L5 script redeeming service is ONLY limited to TVC or Cryptocurrency ("Win$ & Donate w/ This" Addresses displayed on script page) redeeming which the 1st signed up TVC Qty/ equivalent cryptocurrency is the lifetime offered TVC Qty/ equivalent crypto.
How to subscrible this indicator?
The script subscription period only has two options of one month or one year, and its price is floating. The latest price of the script subscription is proportional to the number of likes/agrees this script has already received. Therefore, the price of subscribing to this script shows an increasing trend, and the earliest subscribers can enjoy the price of lifetime lock to this script. As the number of likes / agrees of this script increases, the subscription fee for one month and one year will also increase linearly. Whatever, the first subscription price of the use will be locked for life.
Monthly subscription and annual subscription can be done either by tradingview coins ( TVC ) or by converting into equivalent cryptocurrency at the exchange rate (1TVC=0.01USD) for redeem.
TVC payment needs to pay TVC directly in the comments under this script. Every time I authorize a new user, I will update the latest number of subscribed users and latest price for next subscription under the script comment. If there are any conflicting scenario happened to the rules and my update. My updated price based on the rule will be the final price for next subscription. The following subscribers need to pay the corresponding amount of TVC or cryptocurrency in accordance with the latest number of users and price announced by me in accordance with the rules published.
TVC redemption is the method I strongly recommend, and I hope you can complete the redemption in the comment area of this script. This is like a blockchain structure, each comment is a block, each subscription is a chain, which is conducive to open and transparent publicity and traceability to avoid unnecessary disputes.
Monthly Subscription Charges
500TVC <50 Agrees (A)
50A<850TVC<100A
100A<1000TVC<150A
150A<1350TVC<200A
200A<1500TVC<250A
250A<1850TVC<300A
300A<2000TVC<350A
350A<2350TVC<400A
400A<2500TVC<450A
450A<2850TVC<500A
500A<3000TVC<550A
550A<3350TVC<600A
600A<3500TVC<650A
650A<3850TVC<700A
700A<4000TVC<750A
750A<4350TVC<800A
800A<4500TVC<850A
850A<4850TVC<900A
900A<5000TVC<950A
950A<5350TVC<1000A
1000A<5500TVC<1050A
And so on...
Annual Subscription Charges
5000TVC <50 Agrees (A)
50A<8500TVC<100A
100A<10000TVC<150A
150A<13500TVC<200A
200A<15000TVC<250A
250A<18500TVC<300A
300A<20000TVC<300A
350A<23500TVC<400A
400A<25000TVC<450A
500A<28500TVC<550A
500A<30000TVC<550A
550A<33500TVC<600A
600A<35000TVC<650A
650A<38500TVC<700A
700A<40000TVC<750A
750A<43500TVC<800A
800A<45000TVC<850A
850A<48500TVC<900A
900A<50000TVC<950A
950A<53500TVC<1000A
1000A<55000TVC<1050A
And so on...
[blackcat] L5 Whale Jump Screener 12 AlertsLinkage Authorization:
When you obtain any one of the following technical indicators authorization, the other one will automatically obtain a free authorization for the same length of time:
1. L5 Whale Jump Screener 25 NoAlerts
2. L5 Whale Jump Screener 12 Alerts
Discount Authorization:
While you are authorized for any of the following technical indicators, this indicator will only need to pay 200TVC (not per month) but you obtain the authorization length as long as your longest one among all invited-only indicators .
1. L5 Whales Jump Out of Ocean X
2. L5 Zen Master
Level: 5
Background:
L5 Whale Jump Screener 12 Alerts is a screeener which is based on principle of L5 Whales Jump Out of Ocean X, but it has its own scheme to work as a screener with alerts, which can track 12 trading pairs at the same time. With this indicator, you can track target in your list with remote alerts from TV to your mobile or emails.
At beginning, I want to incorporate this function to "L5 Whale Jump Screener 25 NoAlerts". However, I found it rather difficult to make it happen. One reason is that adding alerts will further increase computing power of it so that TV will not be functional for overloaded indicators. The only way to make a screen plus alerts happen is to reduce the number of targets allowed in the screener until TV rules are in compliance. The other reason is that I found alerts were conflicting with screener function in TV system during my testing. Because if you put many trading pairs that are highly correlated into inputs of the screener indicator. Huge amount of alerts may be produced at the same time, and TV system has its own protection scheme. If too many alerts happened at the same time, it will block and stop the alert scheme immediately. Therefore, I build this one for anyone who need alert function. But, remember, make input tikerids as NOT correlated as possible to prevent TV to shut down your alert for this indicator.
Function:
By tracking multiple targets with alerts, you will own the capability to tracking multiple markets. This ability will let you know the specific situation of the unconnected market and the trading targets in time in the rotating transaction. The alert function will remind you of the current status of multiple markets via mobile phones and emails.
Inputs:
12 tickerids for your customization
Key Signal:
Long Whales / Banker Pump--> fuchsia color area with 0% transparency
Close Long Whales / Close Banker Pump--> red color area with 0% transparency
Short Whales / Banker Dump --> yellow color area with 0% transparency
Close Short Whales / Close Banker Dump --> green color area with 0% transparency
Long Waves Start--> fuchsia color area with 50% transparency
Short Waves Start --> yellow color area with 50% transparency
No Whale or Wave Signal --> gray color rea with 50% transparency
Pros and Cons:
ONLY suitable for discretionary trading, and does NOT support automatic trading system/bots with alerts.
Intuitive and effective, the output signal is more reliable after multi-indicator resonance
For who does not alert function but track more targets, you can choose anther indicator: L5 Whale Jump Screener 25 NoAlerts.
Why 12 Targets are Supported?
From the principle of TV principle, it should be possible to track up to 40 targets at the same time. However, TV has another condition that restricts server computing resources. When the two condition work at the same time, for the whale jump algorithm, the number of targets it can track at the same time will drop from 40 to about 26~27! In addition, this indicator needs to support the display function from the daily time frame to the 1min time frame. Therefore, the requirements for computing resources have further deteriorated. In the end, the maximum tracking number I obtained by compromise is 25 to ensure that this indicator can support 1min or second level normal display without report an error. Based on above fact, adding alerts will further increase computing power needed for this indicator. To prevent TV shutdown this indicator w/ alerts, only 12 tickerids are supported based on this algorithm. Also, due to quite different user scenarios between these two screeners, two versions are published for different group of traders with a linkage authorization schmeme.
Remarks:
My fourth L5 indicator published
Closed-source
Invite-only
Redeem Fee Life Lock Guarantee
Although I take the efforts to inform the script requesters that the best way to promote trading skills is to learn from the open source scripts I released by themself and to improve their PNIE script programming skills, there are still many people asking how to obtain or pay to use BLACKCAT L4/L5 private scripts. In fact, I do not encourage people to use Tradingview Coins ( TVC ) / Cryptocurrency to redeem the right to use BLACKCAT L4/L5 scripts. However, redeeming private script usage rights through TV Coins/ Cryptocurrency may be an effective way to force more people to learn PINE script programming seriously. And then I can concentrate on answering more valuable community questions instead of being overwhelmed by L4/L5 scripting permission reqeusts.
I would like to announce a ‘Redeem Fee Lock Guarantee’ program to further simplify the L4/L5 indicator/strategy utility offering and distinguish itself from the competition. ‘Redeem Fee lock guarantee’ is one of the major initiatives by BLACKCAT as a part of overall value packaging designed to guard BLACKCAT’s followers’ against cost-overruns and operational risks usually borne by them when it comes to PINE script innovation ecosystem. The TVCs redeemed for L4/L5 a follower signs up for with BLACKCAT is their guaranteed lifetime locked in TVC Quantity/ cryptocurrency, with no special conditions, exclusions and fine print whatsoever. Based on this scheme, I can constantly refine, expand, upgrade and improve PINE script publishing to ensure the very best experiences for my followers. The 'Redeem Fee Lock Guarantee' is a step in the direction of rewarding the valuable followers. NOTE: Every L4/L5 script redeeming service is ONLY limited to TVC or Cryptocurrency ("Win$ & Donate w/ This" Addresses displayed on script page) redeeming which the 1st signed up TVC Qty/ equivalent cryptocurrency is the lifetime offered TVC Qty/ equivalent crypto.
How to subscrible this indicator?
The script subscription period only has two options of one month or one year, and its price is floating. The latest price of the script subscription is proportional to the number of likes/agrees this script has already received. Therefore, the price of subscribing to this script shows an increasing trend, and the earliest subscribers can enjoy the price of lifetime lock to this script. As the number of likes / agrees of this script increases, the subscription fee for one month and one year will also increase linearly. Whatever, the first subscription price of the use will be locked for life.
Monthly subscription and annual subscription can be done either by tradingview coins ( TVC ) or by converting into equivalent cryptocurrency at the exchange rate (1TVC=0.01USD) for redeem.
TVC payment needs to pay TVC directly in the comments under this script. Every time I authorize a new user, I will update the latest number of subscribed users and latest price for next subscription under the script comment. If there are any conflicting scenario happened to the rules and my update. My updated price based on the rule will be the final price for next subscription. The following subscribers need to pay the corresponding amount of TVC or cryptocurrency in accordance with the latest number of users and price announced by me in accordance with the rules published.
TVC redemption is the method I strongly recommend, and I hope you can complete the redemption in the comment area of this script. This is like a blockchain structure, each comment is a block, each subscription is a chain, which is conducive to open and transparent publicity and traceability to avoid unnecessary disputes.
Monthly Subscription Charges
500TVC <50 Agrees (A)
50A<850TVC<100A
100A<1000TVC<150A
150A<1350TVC<200A
200A<1500TVC<250A
250A<1850TVC<300A
300A<2000TVC<350A
350A<2350TVC<400A
400A<2500TVC<450A
450A<2850TVC<500A
500A<3000TVC<550A
550A<3350TVC<600A
600A<3500TVC<650A
650A<3850TVC<700A
700A<4000TVC<750A
750A<4350TVC<800A
800A<4500TVC<850A
850A<4850TVC<900A
900A<5000TVC<950A
950A<5350TVC<1000A
1000A<5500TVC<1050A
And so on...
Annual Subscription Charges
5000TVC <50 Agrees (A)
50A<8500TVC<100A
100A<10000TVC<150A
150A<13500TVC<200A
200A<15000TVC<250A
250A<18500TVC<300A
300A<20000TVC<300A
350A<23500TVC<400A
400A<25000TVC<450A
500A<28500TVC<550A
500A<30000TVC<550A
550A<33500TVC<600A
600A<35000TVC<650A
650A<38500TVC<700A
700A<40000TVC<750A
750A<43500TVC<800A
800A<45000TVC<850A
850A<48500TVC<900A
900A<50000TVC<950A
950A<53500TVC<1000A
1000A<55000TVC<1050A
And so on...
[blackcat] L5 Whale Jump Screener 25 NoAlertsLinkage Authorization:
When you obtain any one of the following technical indicators authorization, the other one will automatically obtain a free authorization for the same length of time:
1. L5 Whale Jump Screener 25 NoAlerts
2. L5 Whale Jump Screener 12 Alerts
Discount Authorization:
While you are authorized for any of the following technical indicators, this indicator will only need to pay 200TVC (not per month) but you obtain the authorization length as long as your longest one among all invited-only indicators .
1. L5 Whales Jump Out of Ocean X
2. L5 Zen Master
Level: 5
Background:
L5 Whale Jump Screener 25 NoAlerts is a screeener which is based on principle of L5 Whales Jump Out of Ocean X, but it has its own scheme to work as a screener, which can track 25 trading pairs at the same time. With this indicator, you will see an overall market state if your inputs are major instruments in a specific market via a colorful heat map.
Function:
By tracking multiple targets in the same section can help you increase confidence level of trading because most targets move to the same direction witin the same section. It provides a macro picture to support you know the background of your trading. Also, you can choose your trading target by comparing with others in the same section to make a better decision.
Inputs:
25 tickerids for your customization
Key Signal:
Long Whales / Banker Pump--> fuchsia color area with 0% transparency
Close Long Whales / Close Banker Pump--> red color area with 0% transparency
Short Whales / Banker Dump --> yellow color area with 0% transparency
Close Short Whales / Close Banker Dump --> green color area with 0% transparency
Long Waves Start--> fuchsia color area with 50% transparency
Short Waves Start --> yellow color area with 50% transparency
No Whale or Wave Signal --> gray color rea with 50% transparency
Pros and Cons:
ONLY suitable for discretionary trading, and does NOT support automatic trading system/bots with alerts.
Intuitive and effective, the output signal is more reliable after multi-indicator resonance
For who need alert function, you can choose anther indicator: L5 Whale Jump Screener 12 Alerts.
Why 25 Targets are Supported?
From the principle of TV principle, it should be possible to track up to 40 targets at the same time. However, TV has another condition that restricts server computing resources. When the two condition work at the same time, for the whale jump algorithm, the number of targets it can track at the same time will drop from 40 to about 26~27! In addition, this indicator needs to support the display function from the daily time frame to the 1min time frame. Therefore, the requirements for computing resources have further deteriorated. In the end, the maximum tracking number I obtained by compromise is 25 to ensure that this indicator can support 1min or second level normal display without report an error.
Remarks:
My third L5 indicator published
Closed-source
Invite-only
Redeem Fee Life Lock Guarantee
Although I take the efforts to inform the script requesters that the best way to promote trading skills is to learn from the open source scripts I released by themself and to improve their PNIE script programming skills, there are still many people asking how to obtain or pay to use BLACKCAT L4/L5 private scripts. In fact, I do not encourage people to use Tradingview Coins ( TVC ) / Cryptocurrency to redeem the right to use BLACKCAT L4/L5 scripts. However, redeeming private script usage rights through TV Coins/ Cryptocurrency may be an effective way to force more people to learn PINE script programming seriously. And then I can concentrate on answering more valuable community questions instead of being overwhelmed by L4/L5 scripting permission reqeusts.
I would like to announce a ‘Redeem Fee Lock Guarantee’ program to further simplify the L4/L5 indicator/strategy utility offering and distinguish itself from the competition. ‘Redeem Fee lock guarantee’ is one of the major initiatives by BLACKCAT as a part of overall value packaging designed to guard BLACKCAT’s followers’ against cost-overruns and operational risks usually borne by them when it comes to PINE script innovation ecosystem. The TVCs redeemed for L4/L5 a follower signs up for with BLACKCAT is their guaranteed lifetime locked in TVC Quantity/ cryptocurrency, with no special conditions, exclusions and fine print whatsoever. Based on this scheme, I can constantly refine, expand, upgrade and improve PINE script publishing to ensure the very best experiences for my followers. The 'Redeem Fee Lock Guarantee' is a step in the direction of rewarding the valuable followers. NOTE: Every L4/L5 script redeeming service is ONLY limited to TVC or Cryptocurrency ("Win$ & Donate w/ This" Addresses displayed on script page) redeeming which the 1st signed up TVC Qty/ equivalent cryptocurrency is the lifetime offered TVC Qty/ equivalent crypto.
How to subscrible this indicator?
The script subscription period only has two options of one month or one year, and its price is floating. The latest price of the script subscription is proportional to the number of likes/agrees this script has already received. Therefore, the price of subscribing to this script shows an increasing trend, and the earliest subscribers can enjoy the price of lifetime lock to this script. As the number of likes / agrees of this script increases, the subscription fee for one month and one year will also increase linearly. Whatever, the first subscription price of the use will be locked for life.
Monthly subscription and annual subscription can be done either by tradingview coins ( TVC ) or by converting into equivalent cryptocurrency at the exchange rate (1TVC=0.01USD) for redeem.
TVC payment needs to pay TVC directly in the comments under this script. Every time I authorize a new user, I will update the latest number of subscribed users and latest price for next subscription under the script comment. If there are any conflicting scenario happened to the rules and my update. My updated price based on the rule will be the final price for next subscription. The following subscribers need to pay the corresponding amount of TVC or cryptocurrency in accordance with the latest number of users and price announced by me in accordance with the rules published.
TVC redemption is the method I strongly recommend, and I hope you can complete the redemption in the comment area of this script. This is like a blockchain structure, each comment is a block, each subscription is a chain, which is conducive to open and transparent publicity and traceability to avoid unnecessary disputes.
Monthly Subscription Charges
500TVC <50 Agrees (A)
50A<850TVC<100A
100A<1000TVC<150A
150A<1350TVC<200A
200A<1500TVC<250A
250A<1850TVC<300A
300A<2000TVC<350A
350A<2350TVC<400A
400A<2500TVC<450A
450A<2850TVC<500A
500A<3000TVC<550A
550A<3350TVC<600A
600A<3500TVC<650A
650A<3850TVC<700A
700A<4000TVC<750A
750A<4350TVC<800A
800A<4500TVC<850A
850A<4850TVC<900A
900A<5000TVC<950A
950A<5350TVC<1000A
1000A<5500TVC<1050A
And so on...
Annual Subscription Charges
5000TVC <50 Agrees (A)
50A<8500TVC<100A
100A<10000TVC<150A
150A<13500TVC<200A
200A<15000TVC<250A
250A<18500TVC<300A
300A<20000TVC<300A
350A<23500TVC<400A
400A<25000TVC<450A
500A<28500TVC<550A
500A<30000TVC<550A
550A<33500TVC<600A
600A<35000TVC<650A
650A<38500TVC<700A
700A<40000TVC<750A
750A<43500TVC<800A
800A<45000TVC<850A
850A<48500TVC<900A
900A<50000TVC<950A
950A<53500TVC<1000A
1000A<55000TVC<1050A
And so on...
[blackcat] L5 Zen MasterLevel: 5
Background
L5 Zen Master is my favorite main chart indicator. I have been studying Zen Theory for long and keeping improving related home-baked private indicators. Zen Theory is less known out side of China. This situation is very similar to when Nilson did not introduce Japanese candlesticks worldwide. At that time, traders in other parts of the world rarely heard of Japanese candlesticks. This situation occurs again. When most Chinese bookstores and libraries are full of books on Zen Theory trading techniques, the rest of the world may not know this trading technique based on mathematical derivation axioms.
As for the author of the theory, he/she is as mysterious as Satoshi Nakamoto who created Bitcoin. People don't even know his/her gender, because he/she likes to call himself/herself a "woman" when he/she publishes original trading techniques on his/her blog. No one knows his/her name, only his/her nickname: "Preaching Zen in Tangles" (缠中说禅). People respectfully call him/her "Zen Master" (缠师). Zen Theory is based on geometric structures like Bill Williams' Fractals and ZigZag, but it is very host to MTF applications. In addition, there are unique insights on moving averages, this moving average technology is called Zen Kiss (缠论吻).
Function
It combine several novel indicators together but mainly focus on Zen Theory(缠论主图), including Zen Strokes (自动画笔) 和 Zen Kiss (缠论均线) Moving Averages. To Better understand the market geometry structure, I developped featured Fibonacci Space Indicator which is based on Semi-LOG and Fibonacci Time Window Indicator to help juge trend movements independently. Also, I integrated Better Volume Indicator(BVI) and Range Action Verification Index (RAVI) as well for volume and bias monitoring.
Indicator Set
Zen Stroke (Auto ZigZag, 自动画缠论笔)
Zen Kiss Moving Averages (缠论均线)
Fibonacci Space Indicator with Golden Ratios based on Semi-LOG (黄崇半对数)
Fibnacci Time Window Indicator with red/green background colors
Dynamic Fibnacci Space Arrows to indicate support and resistance immediately
Better Volume Indicator (BVI) with painted bars to juge trend strength
Range Action Verfication Index (RAVI) for large time frame for exetreme conditions warning
Inputs
BVI lookback period --> 5 as default
EnableBVIBarColors --> True as default
Show Zen Stroke --> True as default
Show Fib Space based on Semi-LOG --> True as default
Zen Fractals Lookback Period --> 377 as default
Key Signal
Zen Stroke
Yellow line section for up stroke
Blue line section for down stroke
Zen Kiss MA
Yellow MA for fast line (Cowgirl line)
Fuchsia MA for slow line (Cowboy line)
Fib Space w/ Golden Ratios
Low, 11.4%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 88.6%, High
Fib Time Window
Green background color for top indicator based on time window
Red background color for bottom indicator based on time window
Dynamic Fib Space Arrows
Green arrows for support
Red arrows for resistance
Better Volume Indicator
Yellow bar color --> low volume --> trend ends, commonly before trend reversals
Red bar color --> climax up volume --> very bullish and next bar may continue to be bullish
White bar color --> climax down volume --> very bearish and next bar may continue to be bearish
Green bar color --> churn volume --> Long and short forces play fierce games within a small price range
Fuchisia bar color --> climax churn volume --> Long and short forces play fierce games within a large price range
Range Action Verfication Index
Yellow background color for extremely negative bias, indicating bottom zone
Fuchsia background color for extremely positive bias, indiacting top zone
Pros and Cons
ONLY suitable for discretionary trading, and does NOT support automatic trading system/bots with alerts.
Intuitive and effective, the output signal is more reliable after multi-indicator resonance
Remarks
My second L5 indicator published
Closed-source
Invite-only
Redeem Fee Life Lock Guarantee
Although I take the efforts to inform the script requesters that the best way to promote trading skills is to learn from the open source scripts I released by themself and to improve their PNIE script programming skills, there are still many people asking how to obtain or pay to use BLACKCAT L4/L5 private scripts. In fact, I do not encourage people to use Tradingview Coins ( TVC ) / Cryptocurrency to redeem the right to use BLACKCAT L4/L5 scripts. However, redeeming private script usage rights through TV Coins/ Cryptocurrency may be an effective way to force more people to learn PINE script programming seriously. And then I can concentrate on answering more valuable community questions instead of being overwhelmed by L4/L5 scripting permission reqeusts.
I would like to announce a ‘Redeem Fee Lock Guarantee’ program to further simplify the L4/L5 indicator/strategy utility offering and distinguish itself from the competition. ‘Redeem Fee lock guarantee’ is one of the major initiatives by BLACKCAT as a part of overall value packaging designed to guard BLACKCAT’s followers’ against cost-overruns and operational risks usually borne by them when it comes to PINE script innovation ecosystem. The TVCs redeemed for L4/L5 a follower signs up for with BLACKCAT is their guaranteed lifetime locked in TVC Quantity/ cryptocurrency, with no special conditions, exclusions and fine print whatsoever. Based on this scheme, I can constantly refine, expand, upgrade and improve PINE script publishing to ensure the very best experiences for my followers. The 'Redeem Fee Lock Guarantee' is a step in the direction of rewarding the valuable followers. NOTE: Every L4/L5 script redeeming service is ONLY limited to TVC or Cryptocurrency ("Win$ & Donate w/ This" Addresses displayed on script page) redeeming which the 1st signed up TVC Qty/ equivalent cryptocurrency is the lifetime offered TVC Qty/ equivalent crypto.
How to subscrible this indicator?
The script subscription period only has two options of one month or one year, and its price is floating. The latest price of the script subscription is proportional to the number of likes/agrees this script has already received. Therefore, the price of subscribing to this script shows an increasing trend, and the earliest subscribers can enjoy the price of lifetime lock to this script. As the number of likes / agrees of this script increases, the subscription fee for one month and one year will also increase linearly. Whatever, the first subscription price of the use will be locked for life.
Monthly subscription and annual subscription can be done either by tradingview coins ( TVC ) or by converting into equivalent cryptocurrency at the exchange rate (1TVC=0.01USD) for redeem.
TVC payment needs to pay TVC directly in the comments under this script. Every time I authorize a new user, I will update the latest number of subscribed users and latest price for next subscription under the script comment. If there are any conflicting scenario happened to the rules and my update. My updated price based on the rule will be the final price for next subscription. The following subscribers need to pay the corresponding amount of TVC or cryptocurrency in accordance with the latest number of users and price announced by me in accordance with the rules published.
TVC redemption is the method I strongly recommend, and I hope you can complete the redemption in the comment area of this script. This is like a blockchain structure, each comment is a block, each subscription is a chain, which is conducive to open and transparent publicity and traceability to avoid unnecessary disputes.
Monthly Subscription Charges
500TVC <50 Agrees (A)
50A<850TVC<100A
100A<1000TVC<150A
150A<1350TVC<200A
200A<1500TVC<250A
250A<1850TVC<300A
300A<2000TVC<350A
350A<2350TVC<400A
400A<2500TVC<450A
450A<2850TVC<500A
500A<3000TVC<550A
550A<3350TVC<600A
600A<3500TVC<650A
650A<3850TVC<700A
700A<4000TVC<750A
750A<4350TVC<800A
800A<4500TVC<850A
850A<4850TVC<900A
900A<5000TVC<950A
950A<5350TVC<1000A
1000A<5500TVC<1050A
And so on...
Annual Subscription Charges
5000TVC <50 Agrees (A)
50A<8500TVC<100A
100A<10000TVC<150A
150A<13500TVC<200A
200A<15000TVC<250A
250A<18500TVC<300A
300A<20000TVC<300A
350A<23500TVC<400A
400A<25000TVC<450A
500A<28500TVC<550A
500A<30000TVC<550A
550A<33500TVC<600A
600A<35000TVC<650A
650A<38500TVC<700A
700A<40000TVC<750A
750A<43500TVC<800A
800A<45000TVC<850A
850A<48500TVC<900A
900A<50000TVC<950A
950A<53500TVC<1000A
1000A<55000TVC<1050A
And so on...
[blackcat] L5 Whales Jump Out of Ocean XLevel: 5
Background
I have been working on developing indicators on how to track the banker funds or whales. In my open source indicators published, you can search for the keywords "Banker" or "Whale" to find and use these indicators. After three years of development and hard work, I have perfectly combined the banker fund/whale mathematical model and the unique Fibonacci space-time indicators. This is named as "L5 Whales Jump Out of Ocean X" indicator that I will introduce today.
Function
This indicator introduces three independent judgment standards. They are whales & waves, Fibonacci time windows and dynamic Fibonacci retracement arrows. Whales and waves are banker fund/ whale behavior modeling based on my unique moving average technology. Fibonacci time and space indicators are a unique improvement I made to traditional indicators of the same kind to make them more powerful.
This indicator is basically applicable to all markets, but requires traders to choose the most suitable trading pair to operate. This indicator is used for multiple periods. Because the smaller the period, the more unstable the data, the larger the period, the more stable the Fibonacci space-time indicator. I use this indicator for the operation of cryptocurrency, commodities, forex, local stocks and ETFs. When this indicator is combined with the candle patterns of Japanese candlesticks, it will often produce higher quality signals, so I suggest that people who use this indicator should have the basic knowledge of Japanese candlesticks in order to better use this indicator.
Key Signal
Long Whales / Banker Pump--> fuchsia and red stick bars (Motive waves with fuchsia color; corrective waves with red color)
Short Whales / Banker Dump --> yellow and red green stick bars (Motive waves with yellow color; corrective waves with green color)
Long Waves --> fuchsia and red areas (Motive waves with fuchsia color; corrective waves with red color)
Short Waves --> yellow and red green areas (Motive waves with yellow color; corrective waves with green color)
Fibonacci Top Time Window --> red background color
Fibonacci Bottom Time Window --> green background color
Dynamic Fibonacci Retracement Support Arrows --> green arrows with "SUP" text; the brighter color, the stronger support.
Dynamic Fibonacci Retracement Resistance Arrows --> red arrows with "RES" text; the brighter color, the stronger resistance.
Ready for Support Cross --> green crosses with "*SUP" text on zero axis.
Ready for Resistance Cross --> red crosses with "*RES" text on zero axis.
Pros and Cons
ONLY suitable for discretionary trading, and does NOT support automatic trading system/bots with alerts.
Intuitive and effective, the output signal is more reliable after multi-indicator resonance
Remarks
My first L5 indicator published
Closed-source
Invite-only
Redeem Fee Life Lock Guarantee
Although I take the efforts to inform the script requesters that the best way to promote trading skills is to learn from the open source scripts I released by themself and to improve their PNIE script programming skills, there are still many people asking how to obtain or pay to use BLACKCAT L4/L5 private scripts. In fact, I do not encourage people to use Tradingview Coins (TVC) / Cryptocurrency to redeem the right to use BLACKCAT L4/L5 scripts. However, redeeming private script usage rights through TV Coins/ Cryptocurrency may be an effective way to force more people to learn PINE script programming seriously. And then I can concentrate on answering more valuable community questions instead of being overwhelmed by L4/L5 scripting permission reqeusts.
I would like to announce a ‘Redeem Fee Lock Guarantee’ program to further simplify the L4/L5 indicator/strategy utility offering and distinguish itself from the competition. ‘Redeem Fee lock guarantee’ is one of the major initiatives by BLACKCAT as a part of overall value packaging designed to guard BLACKCAT’s followers’ against cost-overruns and operational risks usually borne by them when it comes to PINE script innovation ecosystem. The TVCs redeemed for L4/L5 a follower signs up for with BLACKCAT is their guaranteed lifetime locked in TVC Quantity/ cryptocurrency, with no special conditions, exclusions and fine print whatsoever. Based on this scheme, I can constantly refine, expand, upgrade and improve PINE script publishing to ensure the very best experiences for my followers. The 'Redeem Fee Lock Guarantee' is a step in the direction of rewarding the valuable followers. NOTE: Every L4/L5 script redeeming service is ONLY limited to TVC or Cryptocurrency ("Win$ & Donate w/ This" Addresses displayed on script page) redeeming which the 1st signed up TVC Qty/ equivalent cryptocurrency is the lifetime offered TVC Qty/ equivalent crypto.
How to subscrible this indicator?
The script subscription period only has two options of one month or one year, and its price is floating. The latest price of the script subscription is proportional to the number of likes/agrees this script has already received. Therefore, the price of subscribing to this script shows an increasing trend, and the earliest subscribers can enjoy the price of lifetime lock to this script. As the number of likes / agrees of this script increases, the subscription fee for one month and one year will also increase linearly. Whatever, the first subscription price of the use will be locked for life.
Monthly subscription and annual subscription can be done either by tradingview coins (TVC) or by converting into equivalent cryptocurrency at the exchange rate (1TVC=0.01USD) for redeem.
TVC payment needs to pay TVC directly in the comments under this script. Every time I authorize a new user, I will update the latest number of subscribed users and latest price for next subscription under the script comment. If there are any conflicting scenario happened to the rules and my update. My updated price based on the rule will be the final price for next subscription. The following subscribers need to pay the corresponding amount of TVC or cryptocurrency in accordance with the latest number of users and price announced by me in accordance with the rules published.
TVC redemption is the method I strongly recommend, and I hope you can complete the redemption in the comment area of this script. This is like a blockchain structure, each comment is a block, each subscription is a chain, which is conducive to open and transparent publicity and traceability to avoid unnecessary disputes.
Monthly Subscription Charges
500TVC <50 Agrees (A)
50A<850TVC<100A
100A<1000TVC<150A
150A<1350TVC<200A
200A<1500TVC<250A
250A<1850TVC<300A
300A<2000TVC<350A
350A<2350TVC<400A
400A<2500TVC<450A
450A<2850TVC<500A
500A<3000TVC<550A
550A<3350TVC<600A
600A<3500TVC<650A
650A<3850TVC<700A
700A<4000TVC<750A
750A<4350TVC<800A
800A<4500TVC<850A
850A<4850TVC<900A
900A<5000TVC<950A
950A<5350TVC<1000A
1000A<5500TVC<1050A
And so on...
Annual Subscription Charges
5000TVC <50 Agrees (A)
50A<8500TVC<100A
100A<10000TVC<150A
150A<13500TVC<200A
200A<15000TVC<250A
250A<18500TVC<300A
300A<20000TVC<300A
350A<23500TVC<400A
400A<25000TVC<450A
500A<28500TVC<550A
500A<30000TVC<550A
550A<33500TVC<600A
600A<35000TVC<650A
650A<38500TVC<700A
700A<40000TVC<750A
750A<43500TVC<800A
800A<45000TVC<850A
850A<48500TVC<900A
900A<50000TVC<950A
950A<53500TVC<1000A
1000A<55000TVC<1050A
And so on...
PriceCatch Ultimate Auto Fibonacci LevelsHello and Warm Greetings to TradingView community.
PriceCatch Ultimate Auto Fibonacci Levels
The only Fibonacci Levels script you'll ever need.
The Problem
One of the problems faced by traders who use Fibonacci levels is that they have to draw the levels manually on their charts. It's tedious and sometimes leads to inaccuracies in identifying correct levels.
Secondly, while there are so many Auto Fibonacci scripts available in the Public Scripts Library, most of them are not really useful as they are very limited in their capability for the following reasons:
either they are based on historical bars or historical pivots - user has to enter the number of historical bars or pivots for the starting point of the Fibonacci Levels.
they are time-frame dependent and re-plot levels when chart's time-frame changes. This is a very serious limitation with most scripts.
they do not offer real and practical user settings.
many of them are not actually pure Fibonacci Levels scripts.
Limitations with other Auto Fibonacci scripts
Other Fibonacci scripts ask user to specify a number of historical bars or pivots to draw the Fibonacci levels. This is a major problem with such scripts - because 50 historical bars on the daily time frame changes to 50 historical bars on the 4H if you change the chart's time-frame to 4H, thereby altering the position of the Fibonacci levels. So, the desired view that the user seeks about price action is not what he/she gets whenever the time-frame changes. Similarly with specifying Pivots. For example, for a swing trader who specifies Pivots, the number of pivots that occur in one month varies depending on the chart's time-frame. So after trying these scripts, users quickly realize that these scripts do not serve purpose.
PriceCatch Ultimate Auto Fibonacci Levels - Unparalleled advantage
The PriceCatch Ultimate Auto Fibonacci Levels script that I am publishing is completely different from other Fibonacci scripts on the TradingView Public Library. My script offers users unparalleled flexibility and options to use it effectively and to suit their trading style. With PriceCatch Ultimate Auto Fibonacci Levels script, user has the ability to choose a variety of options to draw the Fibonacci levels from Current Day, Previous Day all the way up to 52 weeks. Not only that, users can also set their own levels via input options and that makes it even more adaptive to a user's specific needs. So, if you do not want 0.382 level and want the level to be at 0.312, yes, you can do that with this script.
Time-frame independence
This script works independent of the chart time frame and this is it's USP. So, while your chart may be set to 15 minutes time-frame, you can set the script to draw Fibonacci levels of Previous Week, last 3 days or any other available interval of your choice and it will draw it accurately. What's more, you can change your chart's time-frame to any interval of your choice and the Fibonnacci levels stay fixed and true to the chosen option. This ability is very helpful to the user because while the Fibonacci levels are drawn based on the chosen interval's high and low, user can then choose any chart time frame to trade on the drawn Fibonacci levels. This is the crucial difference and big advantage of PriceCatch Ultimate Auto Fibonacci Levels script from other scripts.
Chart type independence
PriceCatch Ultimate Auto Fibonacci Levels script is also independent of chart type. You can set your chart to Bars, Japanese, Hollow, Heikin-Ashi or even line style and this script accurately draws the Fibonacci levels as the logic is independent of chart type.
Time series
For traders who combine Time-Series also in their trading set-up with Fibonacci levels, this script includes Time-Series as well to aid those traders.
Highly configurable
With a number of configuration options, PriceCatch Ultimate Auto Fibonacci Levels script offers utmost flexibility and ease of use to every user.
Practical and really useful
I have written the script after careful study of all the other available scripts and only then took on this project. Once you look at other scripts and what they lack, you will realize my script is all-rounded, very flexible with a wide variety of options to choose from. All of these features make PriceCatch Auto Fibonacci Levels script unique, very powerful and highly useful to traders.
Use Cases
Intraday
If you trade intraday, setting the interval to 3D (3 days) will give you Fibonacci levels of last three days. This may be useful in taking intraday trades by knowing probable support and resistance levels in that period. Then, you can trade on 1 minute, 3 minutes, 5 or any other intraday time frame of your choice.
Swing / Long term trading
For swing or long term traders, setting the interval to PM (previous month) or CQ (current quarter) will help you find probable support / resistance levels in that period that you can use to plan your trades. Then, of course, with the 52W setting, you can take a really long term view of the asset.
Multiple Advantage
Since you can add the script more than once to your chart, you can set one script to a longer time frame and another to a shorter one to form a combination of Fibonacci levels to give you even more precise and desired information about price action and to help you plan/manage your trades.
A Sample
GBPUSD with CQ (Current Quarter) setting
NOTE - PRIOR TO USING THIS SCRIPT
Please remember that the script is shared with absolutely no assurances about usability and any warranties whatsoever and as a responsible trader, please satisfy yourselves thoroughly and use it only if you are satisfied it works for you. Remember, you are 100% responsible for your actions. If you understand and accept that, you may use the script.
QUERIES/FEEDBACK
Please PM me.
I have to thank @BJORGUM for helping me out with this script.
Hope you find this script useful. Wish everyone all the best with trading.
CommonUtils█ OVERVIEW
This library is a utility tool for Pine Script™ developers. It provides a collection of helper functions designed to simplify common tasks such as mapping user-friendly string inputs to Pine Script™ constants and formatting timeframe strings for display. The primary goal is to make main scripts cleaner, more readable, and reduce repetitive boilerplate code. It is envisioned as an evolving resource, with potential for new utilities to be added over time based on community needs and feedback.
█ CONCEPTS
The library primarily focuses on two main concepts:
Input Mapping
Pine Script™ often requires specific constants for function parameters (e.g., `line.style_dashed` for line styles, `position.top_center` for table positions). However, presenting these technical constants directly to users in script inputs can be confusing. Input mapping involves:
Allowing users to select options from more descriptive, human-readable strings (e.g., "Dashed", "Top Center") in the script's settings.
Providing functions within this library (e.g., `mapLineStyle`, `mapTablePosition`) that take these user-friendly strings as input.
Internally, these functions use switch statements or similar logic to convert (map) the input string to the corresponding Pine Script™ constant required by built-in functions.
This approach enhances user experience and simplifies the main script's logic by centralizing the mapping process.
Timeframe Formatting
Raw timeframe strings obtained from variables like `timeframe.period` (e.g., "1", "60", "D", "W") or user inputs are not always ideal for direct display in labels or panels. The `formatTimeframe` function addresses this by:
Taking a raw timeframe string as input.
Parsing this string to identify its numerical part and unit (e.g., minutes, hours, days, weeks, months, seconds, milliseconds).
Converting it into a more standardized and readable format (e.g., "1min", "60min", "Daily", "Weekly", "1s", "10M").
Offering an optional `customSuffix` parameter (e.g., " FVG", " Period") to append to the formatted string, making labels more descriptive, especially in multi-timeframe contexts.
The function is designed to correctly interpret various common timeframe notations used in TradingView.
█ NOTES
Ease of Use: The library functions are designed with simple and understandable signatures. They typically take a string input and return the corresponding Pine Script™ constant or a formatted string.
Default Behaviors: Mapping functions (`mapLineStyle`, `mapTablePosition`, `mapTextSize`) generally return a sensible default value (e.g., `line.style_solid` for `mapLineStyle`) in case of a non-matching input. This helps prevent errors in the main script.
Extensibility of Formatting: The `formatTimeframe` function, with its `customSuffix` parameter, allows for flexible customization of timeframe labels to suit the specific descriptive needs of different indicators or contexts.
Performance Considerations: These utility functions primarily use basic string operations and switch statements. For typical use cases, their impact on overall script performance is negligible. However, if a function like `formatTimeframe` were to be called excessively in a loop with dynamic inputs (which is generally not its intended use), performance should be monitored.
No Dependencies: This library is self-contained and does not depend on any other external Pine Script™ libraries.
█ EXPORTED FUNCTIONS
mapLineStyle(styleString)
Maps a user-provided line style string to its corresponding Pine Script™ line style constant.
Parameters:
styleString (simple string) : The input string representing the desired line style (e.g., "Solid", "Dashed", "Dotted" - typically from constants like LS1, LS2, LS3).
Returns: The Pine Script™ constant for the line style (e.g., line.style_solid). Defaults to line.style_solid if no match.
mapTablePosition(positionString)
Maps a user-provided table position string to its corresponding Pine Script™ position constant.
Parameters:
positionString (simple string) : The input string representing the desired table position (e.g., "Top Right", "Top Center" - typically from constants like PP1, PP2).
Returns: The Pine Script™ constant for the table position (e.g., position.top_right). Defaults to position.top_right if no match.
mapTextSize(sizeString)
Maps a user-provided text size string to its corresponding Pine Script™ size constant.
Parameters:
sizeString (simple string) : The input string representing the desired text size (e.g., "Tiny", "Small" - typically from constants like PTS1, PTS2).
Returns: The Pine Script™ constant for the text size (e.g., size.tiny). Defaults to size.small if no match.
formatTimeframe(tfInput, customSuffix)
Formats a raw timeframe string into a more display-friendly string, optionally appending a custom suffix.
Parameters:
tfInput (simple string) : The raw timeframe string from user input or timeframe.period (e.g., "1", "60", "D", "W", "1S", "10M", "2H").
customSuffix (simple string) : An optional suffix to append to the formatted timeframe string (e.g., " FVG", " Period"). Defaults to an empty string.
Returns: The formatted timeframe string (e.g., "1min", "60min", "Daily", "Weekly", "1s", "10min", "2h") with the custom suffix appended.
TrendGuard Pullback Trader Signals [Quantigenics]The "TrendGuard Pullback Trader Signals" script, integral to the "TrendGuard Pullback Trader" system, offers a sophisticated suite of trading tools for nearly any market or time frame. Designed to be used alongside the "TrendGuard Pullback Trader Indicators" script, this script is pivotal for identifying Buy/Sell Signals, Profit Target Signals, and Stop Loss Levels.
As with all of our scripts, the "TrendGuard Pullback Trader Signals" script, is designed to work on ANY symbol and time frame. The input parameters can be adjusted to fit your specific trading style.
Methodology and Application:
The script's core methodology lies in identifying primary signals at the onset of a trend and secondary signals during pullbacks or dips. It focuses on pinpointing optimal entry points during market pullbacks, enhancing the "TrendGuard Pullback Trader Indicators" script with well-timed signals for profit targets and stop loss levels.
Technical Composition:
The "TrendGuard Pullback Trader Signals" script combines various technical analysis tools to generate comprehensive trading signals. It calculates stop levels by assessing the highest and lowest bars over a chosen period, defining the market range. Primary signals are derived using a triple exponential moving average (EMA) of logarithmic closing prices, identifying trend changes with stop level plots and directional arrows. For secondary signals, the script uses a sequence of EMAs applied to the average price (HLC3) and an oscillator that measures the extremity of recent price movements, pinpointing potential entry points. The script also incorporates a sideways exit mechanism, comparing short-term and long-term EMAs of the average price to detect significant deviations, suggesting exit opportunities. This layered strategy offers a detailed perspective on market trends, momentum, and possible entry and exit points.
EMA-Based Trend Analysis Algorithm :
Utilizes an advanced algorithm that incorporates exponential moving averages (EMA) with specific length parameters. This algorithm analyzes the slope and direction of EMA lines to identify significant shifts in market trends.
Primary Signal Generation : Logarithmic and Triple EMA Function:
Primary signals are derived from a unique logarithmic function applied to price data, which is then processed through a series of three EMAs with distinct period settings. This combination targets potential trend initiation points by detecting shifts in the logarithmic trend curve.
Dynamic Stop Level Determination :
Employs a methodology involving the calculation of recent high and low price bars, adjusted by a factor that considers market volatility. This factor dynamically alters the sensitivity of the stop levels, aligning them with current market conditions.
Secondary Signal Identification During Pullbacks :
Secondary signals are identified through a complex comparison of the market's relative position to its moving averages. This involves calculating the divergence between price and moving averages, adjusted for the rate of change in the market, to flag strategic entry points during pullbacks.
Composite Market Trend Analysis for Signal Mechanism :
Signal generation integrates a composite of multiple technical indicators, each contributing unique mathematical calculations. This integration enhances the accuracy and reliability of entry and exit signals.
Practical Application in Trading :
> For trade initiation, primary signals are used to identify the start of potential trends, applying a specific mathematical threshold to confirm the trend change. Secondary signals focus on quantifying the pullback depth relative to recent market movements for additional entry opportunities.
> The script's dynamic stop loss adjustment incorporates a calculated moving average of recent highs and lows, providing a responsive and protective mechanism for open positions.
How to Use the Script:
Trade Initiation : Primary signals at trend onset can be used for potential entry points, or to simply establish a trend-bias, to watch for Strategic Entries signals.
Strategic Entries on Pullbacks : Secondary signals provide opportunities for additional entries or scaling into positions during pullbacks within the main trend.
Profit Targets and Exit Strategy : Profit target signals serve as potential exit points. For larger positions, consider partial exits at these targets while adjusting stop loss levels to secure profits, and hold the remaining position for further potential gains.
Dynamic Risk Management : Regularly adjust stop loss levels based on the script's dynamic stop level determination to protect against market reversals and lock in profits.
Integration with TrendGuard Pullback Trader Indicators:
The script is designed and intended to be used in conjunction with the "TrendGuard Pullback Trader Indicators ". This integration ensures a holistic approach to market analysis, combining the strengths of both scripts for a comprehensive understanding of market trends, momentum, and entry points.
Note: The lower indicators are from the 'TrendGuard Pullback Trader Indicators' script, complementing the 'TrendGuard Pullback Trader Signals' script seen here, which generates the 'cloud' and signals on the price chart.
The 'TrendGuard Pullback Traders Indicators” script can be found here :
Input Parameter Settings:
Important Usage Guidance: For seamless integration with its counterpart, the "TrendGuard Pullback Trader Indicators" script, it's crucial to align the input parameter settings across both scripts. When adjusting values from their defaults, ensure that corresponding parameters in both scripts are identically set. This synchronization is key to achieving a cohesive and accurate representation on your charts.
Intra-Bar Order Generation (IntraBar): Determines whether signals are generated within the current bar or only after it closes, enhancing flexibility in signal timing.
Stop Level Strength (StopLvlStr): Sets the strength for calculating stop levels, impacting the sensitivity of the script to market highs and lows for stop placement.
Primary Signal Display (PrimON_OFF): Toggles the visibility of primary signals on the chart, aiding in identifying trend initiation points.
Secondary Signal Display (SecON_OFF): Controls the display of secondary signals for opportunities during pullbacks, allowing traders to capitalize on additional entry points.
Stop Loss Level Display (StopLossLvls): Enables or disables the visualization of stop loss levels, crucial for risk management strategies.
Trend Length (TrendLen): Adjusts the length parameter for the EMA calculations, influencing how the script interprets trend duration and strength.
These parameters allow traders to customize the script’s functionality according to their trading style and preferences, ensuring a tailored approach to signal generation and risk management.
Trade Alerts:
The script includes an advanced alert system designed to notify traders of crucial trading signals. This can Especially be useful when using larger time frames where trade setups can take a longer period of time to develop:
Primary Buy/Sell Alerts: Alerts are triggered at primary signals, indicating potential trend initiation points for entering trades.
Secondary Buy/Sell Alerts: These alerts activate during secondary signals, highlighting opportunities within ongoing trends for strategic entries or exits.
Stop Loss Level Alerts: The script can alert traders when the price reaches or crosses the script-determined stop loss levels, aiding in timely decision-making for risk management.
Sideways Exit Alerts: Alerts for potential exits are generated in sideways market conditions, based on the script’s analysis of average price movements.
To set up these alerts, traders can use TradingView’s alert system to specify the conditions under which they receive notifications, such as when a certain shape (e.g., arrow up for buy, arrow down for sell) appears on the chart. This feature helps traders stay informed and react promptly to the dynamic market conditions.
The "TrendGuard Pullback Trader Signals " script is a meticulously crafted tool, essential for traders aiming to enhance their market analysis and decision-making across diverse trading environments. While the script offers advanced functionalities, it reaches its full potential when used alongside the "TrendGuard Pullback Trader Indicators" script. Traders are advised to familiarize themselves with both scripts for a well-rounded trading strategy.
As always, remember that trading involves risks and past performance is not indicative of future results.
You can see the “Author’s instructions" below to get immediate access to TrendGuard Pullback Trader Signals & the rest of the “Quantigenics Premium Indicator Suite”.
BE-NSE-Distributed Straddle Intraday Trading StrategyHerewith publishing the script (not the Indicator!) for the benift of Option Traders. I call this a script as this doesn't perform any kind of analysis of candle data and provide general BUY | SELL information. This Script is based on the TRUE VALUES concept which is nothing but LTP.
Idea Behind this Script:
As an option seller i need the lower risk option premium to trade. so that, time can work in our favor. basic question which we get at the first is which option to choose out of many available.
If traders feel the question is apt then this script is for them.
Logic Behind this script:
Upon Market Open, script in the BACKEND ( Under the hood ) deployes 60 possible combinations of STRADDLES for sampling, and continue to monitor the LTP movements and compares it against opposite pairs. lets say out of 30 Straddle options one of the Straddle it picked is ATM CE VS ATM PE. for 1 rs move in underlying how much impact is happening in CE VS PE.
This simple anlysis is done at every 30 seconds. once the Analysis is complete it picks 4 options 2 on the CALL side and 2 on the PUT side, which script feels the movement of prices are smooth. SMOOTH refers that time decay that can work in our favor..
Calculations behid the script:
lets say BNF LTP is 52000 at 9:20 AM, and one of the pair script took for sampling was ATM CE vs PE which are having the LTP of 100 each.
At 9:35 AM, BNF is trading at 52075, and ATM CE is reading the LTP of 122 and ATM PUT is reading the LTP of 70. ideally LTP of Call should be around 135 and Put should be around 65 considering the usual delta of 0.48 . Net Money Index for this Pair Sample is 8
Call Side => 100 - 122 = -22
Put Side => 100 - 70 = 30
Money Index => 30 - 22 = 8 for 15 Min
This Money index is calculated across choosen samples and the Option strikes is provided as an output which has mere possiblity of working in Options Seller's favor.
How to Read the Output:
For the choosen strikes from the time of Entry (Suggested Entry time by script) till the current time, the bottom pane plots the Money index as columns. Green Columns indicate that how much option premium eroded due to time decay. Red Columns indicate that how much Option premium increased during the time.
Note: Script dynamically calculate the strikes and suggests in realtime.
WARNING or a Humble Request:
For those who don't understand the word "Repaint" how it works in Pine Script. plz don't consider using this script. For those who wish to understand I have kept the Observer mode in the settings which shall guide you on why the Money Index shown on the chart when the MARKET IS CLOSED is different than when the MARKET IS OPEN (Realtime).
Disclaimer:
I have tested the script only in BNF and not sure if this works on Nifty, FinNifty or others. you may still try and plz do provide the feedback for improvising the script.
----- BreathEasy --------
The information contained in my scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators/ideas are only for educational purposes!
Supply and DemandThis is a "Supply and Demand" script designed to help traders spot potential levels of supply (resistance) and demand (support) in the market by identifying pivot points from past price action.
Differences from Other Scripts:
Unlike many pivot point scripts, this one offers a greater degree of customization and flexibility, allowing users to determine how many ranges of pivot points they wish to plot (up to 10), as well as the number of the most recent ranges to display.
Furthermore, it allows users to restrict the plotting of pivot points to specific timeframes (15 minutes, 30 minutes, 1 hour, 4 hours, and daily) using a toggle input. This is useful for traders who wish to focus on these popular trading timeframes.
This script also uses the color.new function for a more transparent plotting, which is not commonly used in many scripts.
How to Use:
The script provides two user inputs:
"Number of Ranges to Plot (1-10)": This determines how many 10-bar ranges of pivot points the script will calculate and potentially plot.
"Number of Last Ranges to Show (1-?)": This determines how many of the most recent ranges will be displayed on the chart.
"Limit to specific timeframes?": This is a toggle switch. When turned on, the script only plots pivot points if the current timeframe is one of the following: 15 minutes, 30 minutes, 1 hour, 4 hours, or daily.
The pivot points are plotted as circles on the chart, with pivot highs in red and pivot lows in green. The transparency level of these plots can be adjusted in the script.
Market and Conditions:
This script is versatile and can be used in any market, including Forex, commodities, indices, or cryptocurrencies. It's best used in trending markets where supply and demand levels are more likely to be respected. However, like all technical analysis tools, it's not foolproof and should be used in conjunction with other indicators and analysis techniques to confirm signals and manage risk.
A technical analyst, or technician, uses chart patterns and indicators to predict future price movements. The "Supply and Demand" script in question can be an invaluable tool for a technical analyst for the following reasons:
Identifying Support and Resistance Levels : The pivot points plotted by this script can act as potential levels of support and resistance. When the price of an asset approaches these pivot points, it might bounce back (in case of support) or retreat (in case of resistance). These levels can be used to set stop-loss and take-profit points.
Timeframe Analysis : The ability to limit the plotting of pivot points to specific timeframes is useful for multiple timeframe analysis. For instance, a trader might use a longer timeframe to determine the overall trend and a shorter one to decide the optimal entry and exit points.
Customization : The user inputs provided by the script allow a technician to customize the ranges of pivot points according to their unique trading strategy. They can choose the number of ranges to plot and the number of the most recent ranges to display on the chart.
Confirmation of Other Indicators : If a pivot point coincides with a signal from another indicator (for instance, a moving average crossover or a relative strength index (RSI) divergence), it could provide further confirmation of that signal, increasing the chances of a successful trade.
Transparency in Plots : The use of the color.new function allows for more transparent plotting. This feature can prevent the chart from becoming too cluttered when multiple ranges of pivot points are plotted, making it easier for the analyst to interpret the data.
In summary, this script can be used by a technical analyst to pinpoint potential trading opportunities, validate signals from other indicators, and customize the display of pivot points to suit their individual trading style and strategy. Always remember, however, that no single indicator should be used in isolation, and effective risk management strategies should always be employed.
FvgPanel█ OVERVIEW
This library provides functionalities for creating and managing a display panel within a Pine Script™ indicator. Its primary purpose is to offer a structured way to present Fair Value Gap (FVG) information, specifically the nearest bullish and bearish FVG levels across different timeframes (Current, MTF, HTF), directly on the chart. The library handles the table's structure, header initialization, and dynamic cell content updates.
█ CONCEPTS
The core of this library revolves around presenting summarized FVG data in a clear, tabular format. Key concepts include:
FVG Data Aggregation and Display
The panel is designed to show at-a-glance information about the closest active FVG mitigation levels. It doesn't calculate these FVGs itself but relies on the main script to provide this data. The panel is structured with columns for timeframes (TF), Bullish FVGs, and Bearish FVGs, and rows for "Current" (LTF), "MTF" (Medium Timeframe), and "HTF" (High Timeframe).
The `panelData` User-Defined Type (UDT)
To facilitate the transfer of information to be displayed, the library defines a UDT named `panelData`. This structure is central to the library's operation and is designed to hold all necessary values for populating the panel's data cells for each relevant FVG. Its fields include:
Price levels for the nearest bullish and bearish FVGs for LTF, MTF, and HTF (e.g., `nearestBullMitLvl`, `nearestMtfBearMitLvl`).
Boolean flags to indicate if these FVGs are classified as "Large Volume" (LV) (e.g., `isNearestBullLV`, `isNearestMtfBearLV`).
Color information for the background and text of each data cell, allowing for conditional styling based on the FVG's status or proximity (e.g., `ltfBullBgColor`, `mtfBearTextColor`).
The design of `panelData` allows the main script to prepare all display-related data and styling cues in one object, which is then passed to the `updatePanel` function for rendering. This separation of data preparation and display logic keeps the library focused on its presentation task.
Visual Cues and Formatting
Price Formatting: Price levels are formatted to match the instrument's minimum tick size using an internal `formatPrice` helper function, ensuring consistent and accurate display.
Large FVG Icon: If an FVG is marked as a "Large Volume" FVG in the `panelData` object, a user-specified icon (e.g., an emoji) is prepended to its price level in the panel, providing an immediate visual distinction.
Conditional Styling: The background and text colors for each FVG level displayed in the panel can be individually controlled via the `panelData` object, enabling the main script to implement custom styling rules (e.g., highlighting the overall nearest FVG across all timeframes).
Handling Missing Data: If no FVG data is available for a particular cell (i.e., the corresponding level in `panelData` is `na`), the panel displays "---" and uses a specified background color for "Not Available" cells.
█ CALCULATIONS AND USE
Using the `FvgPanel` typically involves a two-stage process: initialization and dynamic updates.
Step 1: Panel Creation
First, an instance of the panel table is created once, usually during the script's initial setup. This is done using the `createPanel` function.
Call `createPanel()` with parameters defining its position on the chart, border color, border width, header background color, header text color, and header text size.
This function initializes the table with three columns ("TF", "Bull FVG", "Bear FVG") and three data rows labeled "Current", "MTF", and "HTF", plus a header row.
Store the returned `table` object in a `var` variable to persist it across bars.
// Example:
var table infoPanel = na
if barstate.isfirst
infoPanel := panel.createPanel(
position.top_right,
color.gray,
1,
color.new(color.gray, 50),
color.white,
size.small
)
Step 2: Panel Updates
On each bar, or whenever the FVG data changes (typically on `barstate.islast` or `barstate.isrealtime` for efficiency), the panel's content needs to be refreshed. This is done using the `updatePanel` function.
Populate an instance of the `panelData` UDT with the latest FVG information. This includes setting the nearest bullish/bearish mitigation levels for LTF, MTF, and HTF, their LV status, and their desired background and text colors.
Call `updatePanel()`, passing the persistent `table` object (from Step 1), the populated `panelData` object, the icon string for LV FVGs, the default text color for FVG levels, the background color for "N/A" cells, and the general text size for the data cells.
The `updatePanel` function will then clear previous data and fill the table cells with the new values and styles provided in the `panelData` object.
// Example (inside a conditional block like 'if barstate.islast'):
var panelData fvgDisplayData = panelData.new()
// ... (logic to populate fvgDisplayData fields) ...
// fvgDisplayData.nearestBullMitLvl = ...
// fvgDisplayData.ltfBullBgColor = ...
// ... etc.
if not na(infoPanel)
panel.updatePanel(
infoPanel,
fvgDisplayData,
"🔥", // LV FVG Icon
color.white,
color.new(color.gray, 70), // NA Cell Color
size.small
)
This workflow ensures that the panel is drawn only once and its cells are efficiently updated as new data becomes available.
█ NOTES
Data Source: This library is solely responsible for the visual presentation of FVG data in a table. It does not perform any FVG detection or calculation. The calling script must compute or retrieve the FVG levels, LV status, and desired styling to populate the `panelData` object.
Styling Responsibility: While `updatePanel` applies colors passed via the `panelData` object, the logic for *determining* those colors (e.g., highlighting the closest FVG to the current price) resides in the calling script.
Performance: The library uses `table.cell()` to update individual cells, which is generally more efficient than deleting and recreating the table on each update. However, the frequency of `updatePanel` calls should be managed by the main script (e.g., using `barstate.islast` or `barstate.isrealtime`) to avoid excessive processing on historical bars.
`series float` Handling: The price level fields within the `panelData` UDT (e.g., `nearestBullMitLvl`) can accept `series float` values, as these are typically derived from price data. The internal `formatPrice` function correctly handles `series float` for display.
Dependencies: The `FvgPanel` itself is self-contained and does not import other user libraries. It uses standard Pine Script™ table and string functionalities.
█ EXPORTED TYPES
panelData
Represents the data structure for populating the FVG information panel.
Fields:
nearestBullMitLvl (series float) : The price level of the nearest bullish FVG's mitigation point (bottom for bull) on the LTF.
isNearestBullLV (series bool) : True if the nearest bullish FVG on the LTF is a Large Volume FVG.
ltfBullBgColor (series color) : Background color for the LTF bullish FVG cell in the panel.
ltfBullTextColor (series color) : Text color for the LTF bullish FVG cell in the panel.
nearestBearMitLvl (series float) : The price level of the nearest bearish FVG's mitigation point (top for bear) on the LTF.
isNearestBearLV (series bool) : True if the nearest bearish FVG on the LTF is a Large Volume FVG.
ltfBearBgColor (series color) : Background color for the LTF bearish FVG cell in the panel.
ltfBearTextColor (series color) : Text color for the LTF bearish FVG cell in the panel.
nearestMtfBullMitLvl (series float) : The price level of the nearest bullish FVG's mitigation point on the MTF.
isNearestMtfBullLV (series bool) : True if the nearest bullish FVG on the MTF is a Large Volume FVG.
mtfBullBgColor (series color) : Background color for the MTF bullish FVG cell.
mtfBullTextColor (series color) : Text color for the MTF bullish FVG cell.
nearestMtfBearMitLvl (series float) : The price level of the nearest bearish FVG's mitigation point on the MTF.
isNearestMtfBearLV (series bool) : True if the nearest bearish FVG on the MTF is a Large Volume FVG.
mtfBearBgColor (series color) : Background color for the MTF bearish FVG cell.
mtfBearTextColor (series color) : Text color for the MTF bearish FVG cell.
nearestHtfBullMitLvl (series float) : The price level of the nearest bullish FVG's mitigation point on the HTF.
isNearestHtfBullLV (series bool) : True if the nearest bullish FVG on the HTF is a Large Volume FVG.
htfBullBgColor (series color) : Background color for the HTF bullish FVG cell.
htfBullTextColor (series color) : Text color for the HTF bullish FVG cell.
nearestHtfBearMitLvl (series float) : The price level of the nearest bearish FVG's mitigation point on the HTF.
isNearestHtfBearLV (series bool) : True if the nearest bearish FVG on the HTF is a Large Volume FVG.
htfBearBgColor (series color) : Background color for the HTF bearish FVG cell.
htfBearTextColor (series color) : Text color for the HTF bearish FVG cell.
█ EXPORTED FUNCTIONS
createPanel(position, borderColor, borderWidth, headerBgColor, headerTextColor, headerTextSize)
Creates and initializes the FVG information panel (table). Sets up the header rows and timeframe labels.
Parameters:
position (simple string) : The position of the panel on the chart (e.g., position.top_right). Uses position.* constants.
borderColor (simple color) : The color of the panel's border.
borderWidth (simple int) : The width of the panel's border.
headerBgColor (simple color) : The background color for the header cells.
headerTextColor (simple color) : The text color for the header cells.
headerTextSize (simple string) : The text size for the header cells (e.g., size.small). Uses size.* constants.
Returns: The newly created table object representing the panel.
updatePanel(panelTable, data, lvIcon, defaultTextColor, naCellColor, textSize)
Updates the content of the FVG information panel with the latest FVG data.
Parameters:
panelTable (table) : The table object representing the panel to be updated.
data (panelData) : An object containing the FVG data to display.
lvIcon (simple string) : The icon (e.g., emoji) to display next to Large Volume FVGs.
defaultTextColor (simple color) : The default text color for FVG levels if not highlighted.
naCellColor (simple color) : The background color for cells where no FVG data is available ("---").
textSize (simple string) : The text size for the FVG level data (e.g., size.small).
Returns: _void
Broadview Economic StudioThank you for taking the time to read this description. We'll be taking a look at the Broadview Economic Studio. This has been a work-in-progress for years and is a very powerful tool for planning trades with complex volume scaling strategies. We will be talking about many indicators and types of indicators used in the public domain, but it is NOT recommended to reverse engineer our scripts as there is quite a bit of logic in the code that works to make each common approach entirely unique. So although you may understand quite a bit about oscillators, the way they work with the rest of the logic within the script may change the way you know them to work from elsewhere.
In the chart snapshot above you'll see a mild configuration where I only had to tweak a few settings. Commissions are set to 0.1%, starting capital is set to $10,000, and slippage is off. In my tests orders came through less than a penny off. Generally speaking, there are really only two situations in which you should be concerned about slippage. The first is if you trade really low timeframe charts like the 1 second. This tool, while it works for any timeframe, is programmed on the 45 minute timeframe and works best there. The other situation in which you should be prepared for slippage is if you're using extremely high volume trades in the hundreds of thousands or millions depending on the market cap and liquidity of the asset you're studying. Large orders like that have to be split up among several deals and that can cause slippage.
There are 31 primary inputs for users to tweak. Each input is grouped within a module called a Suite. Each suite has a focus like filtering signals or strategically allocating volume according to your strategy. Everything starts with the Origin Suite. The Origin Suite is a group of inputs that generates Tops & Bottoms from price action. It uses math like Rate of Change, where one can specify a required rate of change before an Origin signal can be made, and users can specify how much lower in price a bar must be compared to previous bars. So with the Origin Suite, users can control how often they want to see originating signals and under what conditions they can appear.
We used to use WVF and CVI to produce top and bottom signals, but our Origin Suite works much better for systematically generating profitable configurations.
The triangles you see on the chart represent markers, potential signals, or Prop Signals as they're referred to within the script. The blue arrows represent trades where Prop Signals were allowed to pass as true long signals. There are two ways to ignore Prop Signals. You can filter the markers entirely, or you can reduce their volume scaling to the minimum which is usually $10 for most exchanges. We're first going to be talking about some of the primary DCA inputs before we talk about the technology we use to filter and overload signals.
Here are some important features found within the script:
Base Orders
Safety Orders
Take Profits
Change-Based Volume Scaling
Ignoring Low or Medium Changes
Overloading
Filtering
Alert Messages w/ Volume Scaling
Let's walk through each of these features in more depth.
The Base Order is the initial Long position within a series. It comes in first and is followed by all of its Safety Orders. The Base Order is set to $25 within the script by default. Keeping the base order low allows one to reserve more of their capital for Safety Orders that are lower within a dip, and thus, lower the user's Position Average. The primary feature of this script is to help users plan their volume scaling strategically, and this is where we start. It's this kind of due diligence and effort in protecting trades that makes this script unique.
So we start with a low Base Order. Then, we follow with a lot of Safety Orders. Typically in DCA this is done in consistent time intervals and in consistent amounts. So in regular DCA one may invest the same amount bi-weekly on pay day. They use the financial instrument as a sort of savings and average their position over their consistent investments. This is not where the bleeding edge of DCA is today though. In modern Doller Cost Averaging, I would expect to see signals and volume scaling based on logic.. as opposed to being consistent intervals.
This sets up the explanation of the primary means of volume scaling within the script. Mathematically, we start with the net balance. This is your specified starting balance plus any wins or losses. Users specify what % of their Available Balance they would like to start with when volume scaling. This percent of capital is then multiplied by a Safety Order Multiplier. The safety order multiplier is made up of a number specified by the user, multiplied by the number of the Safety Order you're on. So user's can control this equation/algorithm and scale their investments as the number of Safety Orders increases and drops in price become more opportune.
The Take Profit within the script lets users specify their desired ROI from a series. So if a user sets a 60% take profit, the script will set a price from the position average that when reached will give the user a 60% ROI for the series including its Base Order and all its Safety Orders.
Before moving on, let's talk about the amazing internal reporting found in the script. When you zoom in on the blue arrows, you can see each trade is accompanied by some extremely helpful information. This is just another feature that makes this script unique, it is the feature that gives us accurate reporting and ultimately allows us to connect with TradingView's Strategy Tester in a way that provides instant backtests with good merit. With this reporting not only can users get reports and information on trades made on different assets with different configurations, but user's can perform a deep dive on each configuration and know exactly what was going on for each trade. The first number is the number of the safety order the script is on. Remember, this is used in the primary volume scaling math. The second number is the amount the script spent on the current trade. The third number denotes the cumulative spending for the series. The final number displays the script's available balance at that time. With these numbers, the TradingView Strategy Tester, and the List of Trades feature, users can practice as much due diligence as they need during their studies.
Let's move on to talking about my favorite suite within the script, the Volume Scaling Suite. Here there are two primary means of controlling volume scaling. Although, in the near future there will be more.
In this suite you'll find Change-Based Volume Scaling and Position Average Volume Scaling. Position Average Volume Scaling is quite easy to explain. This feature only allows signals to pass if they are lower in price than your base order. In this way, users can apply most of their capital to trades that lower their position average. Simply having the money in the market can boost profits, but having a lower Position Average is the entire reason we DCA. Change-Based Volume Scaling is quite a bit more complex.
In theory, one could argue that every moment is a great moment to buy. It's just that some moments are more opportune than others. So it's not about perfect signals as much as it's about proper volume scaling.
Change-Based Volume Scaling allows us to set rules that dictate how much volume scaling is used based on the asset's current delta, or Rate of Change.
Using CBVS, one can downscale capital applied to signals with a low ROC, or simply ignore them. So if a signal comes in and the price hasn't changed very much then you can automatically use less volume for the trade. One can do the same thing for medium changes, and the user can specify what quantifies as a low or medium change. Users can give extra volume to signals with a greater rate of change, or overload signals with a high rate of change! So the CBVS feature gives users the ability to allocate volume based on logic rooted in the asset's rate of change. If a signal has dropped a lot in price, then generally, it is deserving of more capital and that's what makes this feature unique and so powerful.
There are two kinds of Overloading found in the script. There's overloading from CBVS, and then overloading from the 4 signal filtering suites. There's an important difference to note before we move on. Overloading performed by CBVS is based on ignored signals. So if you ignore low or medium change signals, and you have CBVS Overloading on, the script will allocate more capital to High Change signals. When signals are ignored, they are downscaled to $10. Whereas with the filtering suites, if a signal is filtered the Prop Signal triangle marker is removed entirely. The overloading in that scenario is simply applied to signals that aren't filtered. The reason it's done this way is because allowing ignored signals to still come in, with the lowest volume scaling possible, keeps the Safety Order count rising which works in the volume scaling math. This math is intrinsic to getting capital deep within dips and crashes.
So in future versions we may allow ignored signals to be filtered out entirely but for the time being, simply scaling them down to the lowest possible amount is what produces the best and most consistent configurations.
Let's talk about filtering signals, and the overloading provided within each filtering suite.
Here you can see our Overbought & Oversold Heatmap V3. This is a unique indicator that takes 15 common oscillators and visualizes them in a way that clearly denotes confluence. Looking at this indicator makes it easer to read cycles and trends. It is quite common for investors to base their entire scripts on one or more of the oscillators found within the OBOS Heatmap V3. So the OBOS Heatmap V3 is an awesome way to ensure your signals follow an oversold trend! The orange represents an oscillator being oversold, while the yellow represents it being overbought. Generally, when an asset is oversold it is a better time to buy. One can filter signals based on this information and use the Heatmap's unique ability to quantify confluences. In this script users can set a sensitivity and that sets the number of oscillators that must be in agreement before a signal is allowed to pass.
Here are the oscillators found within the OBOS Heatmap:
*Please keep in mind that although some of these oscillators may have big names, the code and math in the script may work differently than you're used to. This is because the code and math is changed quite a bit, and the overall intended functionality of the OBOS Heatmap has a larger scope than any one indicator. It's also important to note that the lengths for these oscillators are set low and are meant to classify the individual signal as either overbought or oversold, and not the entire period. So while the OBOS Heatmap is awesome for trends and cycles, it's ultimately meant to classify individual price bars as either overbought or oversold according to a consensus.*
Relative Strength Index
Money Flow Index
Commodity Channel Index
Aroon Oscillator
Relative Volatility Index
Fast Stochastic Detrended Price Oscillator
Fast Stochastic Elders Force Index
Fast Stochastic Relative Strength Index
Fast Stochastic Relative Vigor Index
Fast Stochastic Klinger Oscillator
Fast Stochastic Awesome Oscillator
Fast Stochastic Ultimate Oscillator
Fast Stochastic Chande Momentum Oscillator
Fast Stochastic On Balance Volume Oscillator
Fast Stochastic Moving Average Convergence/Divergence
Each band of the Overbought & Oversold Heatmap represents an oscillator. When it's orange it's said to be oversold. When it's yellow it's said to be overbought. The indicator turns purple during trends and reversals where it is neither overbought nor oversold. It can differentiate between uptrends and downtrends with differing colors of purple, but the OBOS Heatmap is not used for trends or cycles in this script. It is used to quantify oversold confluence.
Let's talk about the Dominance Suite.
First note in the top portion of the screenshot above, you will see various colors in the script. It replaces the price line with something we call Price Flow bars. So when you add the script it's best to make the stock price line invisible in TV settings. The Price Flow Bars use a preset EMA to color price action as being in either a downward momentum or upward momentum. The triangular signals represent dark teal for the initial long marker within a series, dark green for long orders and long signals that convert into safety orders, and light green for safety orders. This is more logic that makes this script really unique. The dark green initial long marker signals are rarely seen. You can find them at the beginning of a new series of signals and they work to establish when a new series of signals should begin. The dark green signals actually denote a long base order opportunity, but if a series has already started then these signals are converted into Safety Orders. The Safety Orders then come in light green, and red for Prop Shorts. Prop Shorts work with Initial Longs to establish the start of a new series. More on that math I cannot tell.
In the bottom half of the screenshot is the Dominance Suite itself. It's another one of the four filtering suites found in the script. It is made up of 7 oscillators that work to classify a price bar as being controlled by either the bears or the bulls. If a price bar is controlled by the bears it is said to be a better investment. The Dominance Suite works by applying a moving average to the balance of power. This is the way TradingView has intended the balance of power to be used, and works quite nicely in classifying individual price bars as either bearish or bullish. It's not an overall trend indicator as much as it states whether a bar is mostly controlled by the bears or the bulls.
Here are the oscillators found within the Dominance Suite:
SMA of BOP
EMA of BOP
HMA of BOP
WMA of BOP
VWMA of BOP
TEMA of BOP
LSMA of BOP
Within the script, there is an input for a negative threshold. When each of these 7 oscillators is in confluence and below this set threshold, the Prop Long will be allowed to pass as a real trade.
Keep in mind that each filtering suite also has the option to overload signals.
So not only can you filter signals based on these suites but you can also apply additional volume scaling to signals that don't get filtered.
Here we have the True Oscillator. The True Oscillator is a brand new oscillator. It's similar to things like the RSI or DPO, but technically speaking it considers many more factors into its average than other oscillators. It considers balance of power, sentiment, volume, momentum, gravity, and places special-strategic weighting on price data based on whether it's opening, closing, high, or low. If you stack the True Oscillator up with the RSI you'll notice right away they look similar, but each movement is quite different. Overall the movements are more balanced, the individual bars are more consistent with price data, and the swings are more clearly pronounced while simultaneously having a better register of strength in momentum. We use this indicator to filter and overload signals, to trade according to momentum, and to provide a 16th independent oscillator that can check the OBOS Heatmap without having to be confluent.
The final filtering suite is based on Net Volume. It classifies signals as oversold when there is a significant negative trend in net volume. If Net Volume is under 0, and trends downward for either 3, 4, or 5 bars in a row then it will mark a signal as oversold and allow it to pass. Then, if overloading for this suite is turned on it will allocate more volume to signals it does not filter out.
There is a lot that can be said about this strategy. The primary takeaway though is that it's not just one strategy. It's a tool for everyone, to help them plan their approach to different assets in different market climates. This tool can help you study current market conditions. It can allow you to plan a strategic approach to market segments, and see how your strategy would fare if new market data performed similarly. It's not just one strategy, but more of a strategy printer.
The Origin Suite allows users to plan the positioning of their signals. The Overbought & Oversold Suite allows users to filter their signals based on whether or not they are oversold. The Dominance Suite allows users to filter signals based on whether the market is being controlled by the bears or the bulls. The True Oscillator gives users the ability to filter signals based on a deep and powerful momentum oscillator. The Net Volume Suite lets users filter signals based on volume trends. When signals are filtered, signals that pass, can be overloaded with additional volume scaling. Features like Change-Based Volume Scaling and Position Average Volume Scaling give users plenty of inputs to create complex volume scaling strategies. Common-sense DCA inputs allow users to scale into markets the way pros do.
The Broadview Economic Studio is a powerful tool for planning trades with complex volume scaling strategies.
Users can plan their approach to different kinds of markets. They can link the script with their bot or broker like 3Commas, and the script will automatically send the correct volume scaling through to the bot.
Thank you for your time, and for reading the description of the Broadview Economic Studio.
Auto Harmonic Pattern - UltimateX [Trendoscope]IMPORTANT NOTE: (Read this before looking at any other thing on this indicator)
This indicator is created to supersede existing Auto-Harmonic-Pattern-Ultimate-Trendoscope invite only script. The script deviates a lot from the original Auto Harmonic Patterns Ultimate script in terms of number of available patterns, trading type and few other things. Hence, instead of updating the existing script, we have just decided to release as new script. Few FAQs in this regard are as below
What it means for users of AHPU and new users?
▶ Subscription of this script is not sold separately, but will be offered along with existing AHPU script. Meaning, there will be single subscription for both scripts together.
▶ All existing subscribers of AHPU will also get access to this script for the duration of their subscription term. Will start adding access to users starting from lifetime subscribers first.
▶ Any new subscriptions to AHPU will also get access to both the scripts together. We will eventually look to phase out existing AHPU once users are accustomed to new script and any possible bugs are resolved.
▶ Any trial requests will also get access to both scripts. You can request trial even if you have recently requested trial for AHPU.
Why did we create new script instead of updating the existing one?
▶ As mentioned before, this script deviates a lot from the original AHPU. Hence, it is released as new version to make sure smoother transition of users. If anyone is not comfortable using the new version, they can continue using the existing AHPU script until things settle down.
▶ Since the script is new implementation, it may also have initial bugs. It will help us resolve it in more streamlined way.
What are the main differences between these scripts?
▶ Uses single zigzag instead of multi as algorithm is further improved to detect almost everything using single zigzag.
▶ More number of patterns added. But, new patterns are disabled by default as some of them have very wide PRZ. Users can enable it via settings.
▶ Trading type with trailing entry - With wide PRZs, we also had to implement different method for calculating entry/stop. This is explained later in the script.
▶ Matrix implementation and enhanced stats - Entire implementation is redesigned to use matrix data structure instead of arrays. This allows lots of possibilities including enhanced closed trade stats.
▶ Support/Resistance widget is removed as it is proving to be bit of overhead. Users can make use of Support Resistance widget script which is a free to use script instead.
Let's get to the details of indicator now.
🎲 Indicator Components
🎯 Patterns Covered
● Classic Patterns
Gartley
Bat
Butterfly
Crab
Deep Crab
Cypher
Shark
Nenstar
● Anti/Alternate Patterns
Anti Nenstar
Anti Shark
Anti Cypher
Anti Crab
Anti Butterfly
Anti Bat
Anti Gartley
Navarro200
● Non-Standard Patterns (Disabled by default)
Five Zero
Three Drives
White Swan
Black Swan
Sea Pony
Leonardo
121
Snorm
Total
Below is a quick snapshot of indicator components.
Now, lets look at some of the individual components:
🎯 Open trade stats helps recognise trades in motion.
Apart from regular stats, it also contain different types of risk reward ratios.
Regular RR : RR calculated from entry to reach target with initial stop for risk consideration
Trailing RR : This is RR calculated for price to reach from one target to next target considering trailing stop for calculating risk
Live RR : This is calculated based on current price as entry and with given targets and stop levels. Live RR will be blank for targets which are already reached.
Targets are calculated only when entry is made. Hence, target details are not shown for patterns where it is still awaiting entry.
🎯 Closed trade stats helps understand historical performance of patterns.
By default closed stats are displayed in Compact mode. Which means, only total stats are shown. But, users can change this to show detailed stats via settings. Detailed stats take up entire screen most of the time. So, keep them only if it is required.
Closed stats present average Risk Reward, Trailing Risk Reward, Average Win Rate, and Average Trailing Win Rate for all the possible levels. As discussed before.
Regular RR : RR calculated from entry to reach target with initial stop for risk consideration
Trailing RR : This is RR calculated for price to reach from one target to next target considering trailing stop for calculating risk
Win Rate : Simple win rate calculation based on number of patterns reached target and number of valid patterns.
Trailing Win Rate : This is win rate calculated based on previous target to current target.
For example, if there are 48 valid patterns and out of which 24 patterns reach target1 and 12 patterns out of 24 reach target 2
Target1 WR : 50% (24/48)
Target1 TWR : Not applicable as there is no target before Target1
Target2 WR : 25% (12/48)
Target2 TWR : 50% (12/24)
🎲 Settings
Tooltips are provided to help with each and every settings. And they are as below.
🎲 Fully Customisable Alerts - Placeholders
Alerts are created via alert() method of pine. Hence, users will not see message box for alert template on alert widget.
Instead alerts widget look something like this:
To overcome this issue, script provides alert template placeholders as part of settings. In settings, you can already see Alert section where you can enable/disable alerts for different events.
▶ New Pattern Detection
▶ Entry Reached
▶ Target1-4 Reached
▶ Stop price reached
▶ Trade Complete - either by stop or reaching target 4
You can use following placeholders in the given text boxes to create your own alert template.
🎯 Common placeholders which are applicable for all alerts
{type} - Alert Type
- New Harmonic Pattern
- Harmonic Pattern Status Update
- Harmonic Pattern Trade Closure
{id} - Pattern Id. This is not fully unique id. But, this will be unique for all open trades. Once trade is closed, Ids are reused whenever feasible.
{ticker} - Ticker information
{timeframe} - Timeframe information
{price} - Current close price
{patterns} - Possible patterns for the projections or PRZ.
{direction} - Trade direction - Bullish or bearish
{entry} - Calculated entry for pattern
{stop} - Calculated stop for pattern
{tstop} - Trailing stop for the pattern in trade
{target1} - Target1 for pattern in trade
{target2} - Target2 for pattern in trade
{target3} - Target3 for pattern in trade
{target4} - Target4 for pattern in trade
🎯 There are few specific placeholders, which are applicable for some alert types.
Harmonic Pattern Status Update
{status} - Status of the Pattern in trade
{laststatus} - Previous status of the Pattern in trade
Harmonic Pattern Trade Closure
{result} - Trade result upon closure
extended session - Regular Opening-Range- JayyOpening Range and some other scripts updated to plot correctly (see comments below.) There are three variations of the fibonacci expansion beyond the opening range and retracements within the opening range of the US Market session - I have not put in the script for the other markets yet.
The three scripts have different uses and strengths:
The extended session script (with the script here below) will plot the opening range whether you are using the extended session or the regular session. (that is to say whether "ext" in the lower right hand corner is highlighted or not.). While in the extended session the opening range has some plotting issues with periods like 13 minutes or any period that is not divisible into 330 mins with a round number outcome (eg 330/60 =5.5. Therefore an hour long opening range has problems in the extended session.
The pre session script is only for the premarket. You can select any opening range period you like. I have set the opening range to be the full premarket session. If you select a different session you will have to unselect "pre open to 9:30 EST for Opening Range?" in the format section. The script defaults to 15 minutes in the "period Of Pre Opening Range?". To go back to the 4 am to 9:30 pre opening range select "pre open to 9:30 EST for Opening Range?" there is no automatic 330 minute selection.
The past days offset script only works in 5 min or 15 minute period. It will show the opening range from up to 20 days past over the current days price action. Use this for the regular session only. 0 shows the current day's opening range. Use the positive integers for number of days back ie 1, 2, 3 etc not -1, -2, -3 etc. The script is preprogrammed to use the current day (0).
Scripts updated to plot correctly: One thing they all have in common is a way of they deal with a somewhat random problem that shifts the plots 4 hours in one direction or the other ie the plot started at 9:30 EST or 1:30PM EST. This issue started to occur approximately June 22, 2015 and impacts any script that tried to use "session" times to manage a plot in my scripts. The issue now seems to have been resolved during this past week.
Just in case the problem reoccurs I have added a "Switch session plot?" to each script. If the plot looks funny check or uncheck the "Switch session plot?" and see the difference. Of course if a new issue crops up it will likely require a different fix.
I have updated all of the scripts shown on this chart. If you are using a script of mine that suffers from the compiler issue then you will find an update on this chart. You can get any and all of the scripts by clicking on the small sideways wishbone on the left middle of the chart. You will see a dialogue box. Then click "make it mine". This will import all of the scripts to your computer and you can play around with them all to decide what you want and what you don't want. This is the easiest way to get all of the scripts in one fell swoop. It is also the easiest way for me to make all of the scripts available. I do not have all of the plots visible since it is too messy and one of the scripts (pre OR) is only for the regular session. To view the scripts click on the blue eye to the right of the script title to show it on this script. If you can only use the regular session. The scripts will all (with the exception of the pre OR) work fine.
If for any reason this script seems flakey refresh the page r try a slightly different period. I have noticed that sometimes randomly the script loves to return to the 5 min OR. This is a very new issue transient issue. As always if you see an issue please let me know.
Cheers Jayy
Options Series - Dynamic Support & Resistance
🌟 Key Features & How It Works:
⭐ Dynamic Support and Resistance Management:
The script dynamically calculates and draws support and resistance lines based on pivot highs and pivot lows. Unlike static levels that remain unchanged, these lines are updated in real-time. When a support or resistance level is breached, the corresponding line is automatically deleted, keeping the chart clean and relevant. This feature ensures that the trader is always looking at valid support and resistance levels based on the current price action.
⭐ Use of Arrays for Line Management:
The script utilizes arrays to store and manage support and resistance lines (array.new_line(0)). This is a more advanced feature of Pine Script v5, allowing for efficient handling of multiple lines on the chart. By using arrays, the script can easily track and manipulate multiple lines (adding, removing, updating), ensuring that the chart remains optimized for real-time analysis.
⭐ Customizable Inputs for Flexibility:
The script includes user inputs for the pivot length and the line width, making it adaptable to different trading styles and preferences. The pivot length determines how sensitive the indicator is to price changes, while the line width allows traders to customize the visual representation of support and resistance levels. These inputs add flexibility and make the script accessible to a broad range of traders.
⭐ Efficient Breach Detection Mechanism:
The isBreached function is a key part of the script. It checks whether the current price has breached any of the existing support or resistance levels. If a breach is detected (i.e., the price crosses below a support or above a resistance), the respective line is deleted, ensuring that only active and valid lines remain on the chart. This automatic update feature reduces the need for manual intervention, helping traders stay focused on key price levels.
⭐ Visual Clarity and Chart Cleanliness:
By deleting breached lines, the script ensures that the chart does not become cluttered with outdated or irrelevant lines. This visual clarity is crucial for traders who rely on clean, simple charts for decision-making. Removing unnecessary information helps traders make faster, more confident decisions based on the current market structure.
⭐ Scalability for Multiple Timeframes:
The use of pivot points makes the script adaptable to different timeframes, from intraday scalping to longer-term swing trading. By changing the pivot length, traders can optimize the indicator for different market environments, ensuring that it can be applied across various asset classes and timeframes.
⭐ Practical for Range-bound and Breakout Trading:
This script is particularly effective for traders who focus on range-bound markets or breakout strategies. It allows them to quickly identify areas where price is likely to reverse (support/resistance) or break out (when support/resistance is breached), providing real-time insight into market dynamics.
⭐ Simplification of Price Action Analysis:
By automating the calculation of pivots and management of support/resistance levels, the script simplifies price action analysis. Traders no longer need to manually draw or monitor these levels, which is a common task in technical analysis. This provides an edge, as it reduces the time spent on chart preparation and helps focus on executing trades.
⭐ Originality:
The script "Options Series - Pivot Based Support & Resistance" is an original approach to generating support and resistance levels using pivot points. Pivot-based techniques are popular, but the script introduces an automated dynamic way of drawing support and resistance lines, tracking breaches, and deleting lines when they are no longer valid. This aspect adds a refreshing layer of interactivity and functionality that sets it apart from basic pivot point scripts. The use of arrays to store and manage multiple support and resistance lines is also a good application of Pine Script’s newer array functionalities.
⭐ Uniqueness of the Script:
The script stands out due to its dynamic management of support and resistance lines. Unlike traditional scripts that simply plot static pivot points, this one evolves with the market by removing broken levels, ensuring only valid support and resistance lines are visible on the chart. This is particularly useful for traders who focus on clean charting. The use of arrays to store and manage the lines, alongside the efficient deletion of lines when breached, demonstrates a solid understanding of Pine Script v5's advanced features, such as array manipulation.
🚀 Conclusion:
This script stands out for its real-time adaptability, dynamic support/resistance management, and efficient use of Pine Script’s advanced features. It a powerful tool for both novice and advanced traders.
The script is an indicator designed to draw support and resistance levels based on pivot highs and lows, dynamically removing lines when they are breached. If a price crosses a support or resistance level, the respective line is deleted, ensuring the chart reflects the current state of support and resistance accurately.
Strategy Development Environment [BerlinCode42]Happy Trade,
Intro
What is New
Algebraic/Boolean Equation
Instruction Set for The Algebraic/Boolean Equation
Example
Usage
Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
Conclusion
1. Intro
This is a rich equipped fork of my previous "Backtest any Indicator v5". And serves as the fitting backtester and trade strategy creation tool for my upcoming ANN Indicators (artificial neural network).
As the previous version this script has no trade signal generating code. The trade signals comes in by the five user settable input slots where the user plug-in external indicators. The final trade siganls go long etc are defined by a algebraic/boolean equation typed in as text in 4 terminals as shown in Image 0 . With this algebraic/boolean equations input the user can setup any trade logic as complex and fast and easy as never seen before here on TradingView.
Image 0
2. What is new
Input algebraic/boolean equations in text-form for go long, go short, exit long & exit short
Five input slots for external indicator signals
Equation tester
User settable signal delay for enter and exit trades
User selectable alternating trades filter
User settable exit long = enter short
Intrabar or trade only on bar closing
Time filter with duration input
User settable UTC Adjustment
Long and short trades possible
Two Take Profits with quantity setting
Trailing Stop
Webhook connection
3. Algebraic/Boolean Equation
This is where the magic happens. Unlike other backtesters that rely on drop-down menus to define trade signal equations—thus limiting the number of input signals and the complexity of logic—this script uses a string interpreter to solve equations. With this, you can develop your trade logic equations and add signals or conditions simply by writing them down in algebraic/boolean form.
The instruction set for this interpreter includes not only external input signals but also several internal values. These include BarTime, BarIndex, Open, High, Low, Close, True Range, Minimal Tick, Volume, and a signal that indicates whether there is an open trade (long, short, or none). You can also reference the values of past bars for all these inputs and, of course, use constant values in your equations. There is a sad limitation: Only one past bar value per equation is practicable. If you use more, errors can occur. It seems to be caused by the pipe line architecture of the parallel computing. In any attempt to solve this issue an older function call result was hand over.
The implemented functions cover a wide range of algebraic and boolean operations. A boolean "true" is represented by all values greater than zero, while "false" is represented by zero or values less than zero.
4. Instruction set for the Algebraic/Boolean Equation
There are functions that accept either two input values or one input value. The general form is (XandY) or (notX), where X and Y can be any input slot, predefined value, constant, or another sub-equation. Functions are always written in lowercase, while input slots and predefined values use uppercase letters.
Each sub-equation must be enclosed in parentheses, e.g., (A+B). Without proper use of parentheses, the interpreter cannot determine which function to calculate first. Negative constants must be expressed by subtracting from zero (e.g., (0-3.14)), so careful attention is required.
Here are some examples that demonstrate both incorrect and correct notations:
incorrect correct
(A+B*C) (A+(B*C))
(A+B+D+E) (A+(B+(D+E)))
(-20>A) ((0-20)>A)
(A*-B) (A*(0-B))
(AnotB) (Aand(notB))
ABS(a-b) (abs(A-B))
The correct usage ensures the interpreter calculates in the intended order.
And here comes the complete Instruction Set:
Addition: (A+B)
Subtraction: (A-B)
Multiplication: (A*B)
Division: (A/B)
Absolut value: (absA)
Power of: (A^B)
Natural Logarithm: (logA)
Lowest value of Low of last x bars: (lotx)
Highest value of High of last x bars: (hotx)
Modulo, Remainder of a Division: (A%B)
Round: (rndA)
round to ceil: (ceiA)
Round to floor: (floA)
Round to next minimal tick: (mitA)
EMA of A of last 3 bars: (e03A)
EMA of A of last 7 bars: (e07A)
EMA of A of last 10 bars: (e10A)
EMA of A of last 20 bars: (e20A)
EMA of A of last 50 bars: (e50A)
Smaller then: (AB)
Equal to: (A==B)
Unequal to: (A!=B)
And: (AandB)
Or: (AorB)
Exclusive Or: (AxorB)
Not: (notA)
Past bar value: (A ) ,whereby x can be 1,2,3,...,barIndex-1
Bar time: (T)
Bar index: (I)
Opening Price of Bar: (O)
Highest Price of Bar: (H)
Lowest Price of Bar: (L)
Closing Price of Bar: (C)
Min tick value for the current symbol: (K)
Trade Volume: (V)
True Range: (R)
Is Money invested: (M) ,Long position: M=1,
Short position: M=-1,
No position: M=0
Reminder: if you wanna replace A or B above don't forget the parentheses. So if you have (logA) and wanna replace A with D+F so the correct replacement would be (log(D+F)).
In the following there are some examples of popular bar patterns and useful filters:
Doji: ((abs(O-C))<(10*K))and((H-L)>(100*K))
green Hammer: (((H-C)<(5000*K))and(((O-L)/2)>(abs(O-C)))
Up trend: (C>(e10H))
Down trend: (C<(e10L))
cool down 7 bars: (( any buy condition )and((e07(absM))==0))
possible Pivot High: (H==(hot30))and((CC))
possible Pivot Low: (L==(lot30))and((C>H )or(O0)), goShort ((A>0)and((A )<0)), Enter Signal delay=0, Exit Signal delay=0, Alternate Trades=true
take profit 1 =0.4% (30%), take profit 2 =0.7%, trailing stop loss=0.2%, intrabar, start capital=1000$, qty=5%, fee=0.05%, no Session Filter
Image 1
6. Usage
First you need to attach some signals from external Indicators. In the example above we use the Stochastic RSI indicator from TradingView. Load the Stochastic RSI indicator to the chart. Then you go to the settings menu of this script, choose in the drop-down menu of Input A the signal .
In case you wanna use a signal which is not in the drop-down menu of Input A do the following:
1) You need to know the name of the boolean (or integer) variable of your indicator which hold the desired signal. Lets say that this boolean variable is called BUY. If this BUY variable is not plotted on the chart you simply add the following code line at the end of your pine script.
For boolean (true/false) BUY variables use this:
plot(BUY ? 1:0,'Your buy condition hold in that variable BUY',display = display.data_window)
And in case your script's BUY variable is an integer or float then use instate the following code line:
plot(BUY ,'Your buy condition hold in that variable BUY',display = display.data_window)
2) Probably the name of this BUY variable in your indicator is not BUY. Simply replace in the code line above the BUY with the name of your script's trade condition variable.
3) Do the same procedure for your SELL variable. Then save your changed Indicator script.
4) Then add the changed Indicator script from step before and this backtester script to the chart ...
5) and go to the settings of it. Choose under "Settings -> Input A " your Indicator. So in the example above choose .
The form is usually: ' : BUY'. Then you see something like Image 1
6) Decide about each trade logic for Go Long and Go Short . In this Example we use for GoLong if "Stoch RSI: K" is smaller then 20. The "Stoch RSI: K" we already loaded it in input A. So we set under Go Long (A<20) and set Enter Signal Delay to 0.
Now we setup Go Short if "Stoch RSI: K" is bigger then 80. So we set under Go Short A>80. Enter Signal Delay is already set.
7) For the Exit conditions you can choose (trailing) Stop loss or Take Profit or Exit by Indicator Signal. What ever comes first triggers the exit. If you like to use an EMA Indicator for the Exit by Indicator just load it in a free input slot B, D, E, F or use the inbuild EMA. For this example we use the inbuild EMA of the last 7 values of close. It is called by the following equation: (e07C). So to exit a long trade when the close price crossunder this EMA you have to type in Exit Long ((e07C)>C). For exit a short trade enter in Exit Short ((e07C)<C).
You can choose detailed time- and session filters. You can setup two take profit levels with quantity and stop loss, trailing, initial capital, quantity per trade and set the exchange fees. You get an overall result table and even a detailed, scroll-able table with all trades.
Image 2
In the Image 2 you see the provided info tables about all Trades and the Result Summary. Further more every trade is marked by a background color, labels and levels. An opening Label with the trade direction and trade number. A closing Label again with the trade number, the trade profit in %, the trade gain in $ and the total amount of $ after all past trades. A green line for each take profit levels and an orange line for the (trail) stop loss. This summary table down left gives you an insign about how good or not so good the trade strategy is and with the trade list you can find those trade which should be avoided. Found those bad trades on the chart by the time or trade number. By seeing a big number of bad trades you may find a pattern and can formulate conditions to avoid those bad trades. Those new conditions you can easily add to the equations for enter or exit trades.
Now you have a backtest with the oppotunity to develope and envolve your trading strategy more and more. And for any iteration from general to detailed you can do it with this backtester. You can add more and more filter signals or may change the setting of your Indicator to the best results and setup the following strategy settings like Time- and Session Filter, Stop Loss, Take Profit etc. With it you find a profitable strategy and it's settings.
7. Settings Menu
In the settings menu you will find the following high-lighted sections. Most of the settings have a attention mark on their right side. Move over it with the cursor to read specific explanation.
Input Signals: This are five input slots A, B, D, E & F which you can load up with your preferred Indicators.
Algebraic Equation for the Trade Signals: Here you setup the definitions for Go Long , Go Short , Ex Long & Ex Short . As shown in Image 3 you can combine the input slots A, B, D, E, F with predefined Variables O, H, L, C, T, I, V, K, M, R or any constant value with the in-build function in the instruction set.
Image 3
Additionally, you have the option to delay entry and exit signals. This feature is particularly useful when trade signals exhibit noise and require smoothing.
You can also enable the script to perform alternating trading . In this mode, trades alternate sequentially—after a long trade, a short trade follows, and then another long trade, and so on.
Image 4
As shown in Image 4 , you can configure the script so that an "exit by signal" also acts as the next entry in the opposite trade direction. To enable this, check the option Exit = Enter Next and set the exit condition as the opposite of the entry condition. With this setting, only one occurrence of the signal is needed to trigger both the exit and the new entry, making the transition seamless.
Equation Tester: Each equation is assigned a checkmark and a color. Activate one like in Image 5 and the chart will highlight bars with a colored background where the corresponding equation result is greater than zero (interpreted as true). At the last bar, a label is displayed showing each equation’s result value. This feature allows you to build your equations and test sub-equations to ensure their results are correct.
Image 5
Backtest Results: Check mark the List of Trades to see any single trade with their stats. If there are more trades than can fit in the list, you can scroll down by decreasing the Scroll value.
Timezone Adjustment: In case you wanna use an Chart-UTC that differs from the time scale you can activate Timezone Adjustment . Then you have to setup your location UTC correctly! The Exchange UTC will be set in most cases automatically. Known Exchanges include Amsterdam, Chicago, New_York, Los_Angeles, Calcutta, Colombo, Moscow, St_Petersburg, Tokyo, Shanghai, Hongkong, Berlin, London, Paris, Madrid. Only if you have other exchanges you need to setup it by hand.
Time Filter: You can set a Start time or deactivate it by leave it unhooked. The same with End Time and Duration Days . Duration Days can also count from End time in case you deactivate Start time.
Session Filter: Here, you can choose to activate trading on a weekly basis, specifying which days of the week trading is allowed and which are excluded. Additionally, you can configure trading on a daily basis, setting the start and end times for when trades are permitted. If activated, no new trades will be initiated outside the defined times and sessions.
Long & Short: Here you can enable Longs or Shorts or both trades.
TP & SL Settings: Take Profit 1&2 set the target prices of any trade in relation to the entry price. The TP1 exit a part of the position defined by the quantity value. Stop Loss set the price to step out when a trade goes the wrong direction. You can activate also a trailing SL.
Additionally, you can specify whether trades should be executed intrabar or at the bar's closing.
Hedging: The Hedging is basic as shown in the following Image 6 and serves as a catch if price moves fast in the wrong direction.
Image 6
You can activate a hedging mechanism, which opens a trade in the opposite direction if the price moves x% against the entry price. If both the Stop Loss and Hedging are triggered within the same bar, the hedging action will always take precedence.
Invest Settings: Here, you can set the initial amount of cash to start with. The Quantity Percentage determines how much of the available cash is allocated to each trade, while the Fee Percentage specifies the trading fee applied to both opening and closing positions.
Webhooks: Here, you configure the License ID and the Comment. This is particularly useful if you plan to use multiple instances of the script, ensuring the webhooks target the correct positions. The Take Profit and Stop Loss values are displayed as prices.
8. Declaration for Tradingview House Rules on Script Publishing
This Backtester also serves as Strategy Development Tool by offering the user a fast and easy opportunity to test, enhance and manipulate the definitions for enter and exit trades. The unique feature "algebraic/boolean equation input" provides users with a significant edge over other backtest scripts. Unlike any other backtesting tool available with few drop-down menus for enter the equation, this script allows users to define an extensive range of trade equation definitions without setup of numerous specific parameters. This is reached by four terminals where the user type in the equation as text. Those equations in text-form are send intern to a context-depending touring machine that interprets the string. So with this tool, users can implement their trading ideas—even those involving complex definitions for trade entries and exits based on huge number of variables and indicators—without hiring a developer.
This script is closed-source and invite-only to support and compensate for over a year of development work. Unlike traditional backtest scripts, this one does not rely on TradingView's strategy functions. Instead, it is designed as an indicator, utilizing TradingView's "Indicator-on-Indicator" functionality.
9. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum to demonstrate the upcoming ANN scripts and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
10. Conclusion
Now it’s your turn! Connect your promising Artificial Neural Networks (ANN) and standard indicators to this feature-rich Backtest/Strategy script. This tool allows you to quickly evaluate how well your indicators perform in trading scenarios and easily compare different trading logics defined by algebraic/boolean equations. You can refine your trading strategy step by step without needing a coder. Let it incorporate numerous variables and indicators—simply write the algebraic/boolean equations for trade entries and exits directly into the script’s settings.
Additionally, you can utilize the Time Filter to identify the market conditions where your setups perform best—or where they fall short. The Session Filter helps you isolate recurring favorable conditions to optimize your strategy further. Once you find a promising configuration, you can set up alerts to send webhooks directly. Configure all parameters, test and validate them in paper trading, and if results align with your expectations, deploy the script as your trading bit.
Cheers
WWV_LB zigzag pivot fix jayyThis is a zigzag version of LazyBear's WWV_LB. In order to plot the WWV_LB as a zigzag, it made sense to me to set the zigzag pivot at the true WWV_LB low or high pivot bars as opposed to the "pivot" bars plotted by the original WWV_LB script. The pivot point identified in the WWV_LB script is actually the point at which a wave reversal is confirmed as opposed to the true script pivot point. Confirmation of a wave reversal can, at times, lag the true pivot by a few bars especially as trendDetectionLength values increase above "1". The WWV_LB script calculates cumulative volume from wave reversal confirmation bar to wave reversal confirmation bar as opposed to the actual/true WWV_LB reversal pivot bar to reversal pivot bar. As such the waves plotted by the original and this pivot fixed scripts not only look slightly different but can also have different cumulative volumes. Confirmation of a wave reversal can lag a few bars behind the true pivot point.
The following critical lines of the original WWV_LB script determine when a wave reverses, both the true pivot and the confirmation point:mov = close>close ? 1 : close<close ? -1 : 0
trend= (mov != 0) and (mov != mov ) ? mov : nz(trend )
isTrending = rising(close, trendDetectionLength) or falling(close, trendDetectionLength)
wave=(trend != nz(wave )) and isTrending ? trend : nz(wave ) These original script lines are replicated in lines 62 to 65 of my script and are used to define wave reversal pivot bars and wave reversal confirmation bars. The original WWV_LB script does not track potential or actual pivot bars. The information can be extracted and tracked from the original script and then used to plot the actual reversal pivot bars. This allows the volume to be tracked from the actual/true pivot bars.Instead of "trendDetectionLength" I have inserted "Trend Detection Length" in the dialogue boxes. You can of course change the descriptor to what you wish by editing script line 33 to the original term or whatever you wish. You might also wish to set the default to the value "2" as per the original script. I have set the default to "3".
If you use a dark background I suggest you edit script line 4 from blackr=black to something such as blackr=yellow The volume values are shown in a vertical column of 3 numbers. Given the limitations of Pinescript Version 3 relative to V4, they are plotted at the point where the wave reversal is confirmed as opposed to the true pivot point. The zigzag lines plot the true pivot points. The plot location of numbers could be improved in Pinescript Version 4. I explain below why I have not published the Pinescript version 4 scripThe volume values plotted on the chart are calculated to be relative numbers. The script is limited to showing only three numbers vertically. Only the highest three values of a number are shown. For example, if the highest recent pip value is 12,345 only the first 3 numerals would be displayed ie 123. But suppose there is a recent value of 691. It would not be helpful to display 691 if the other wave size is shown as 123. To give the appropriate relative value the script will show a value of 7 instead of 691. This informs you of the relative magnitude of the values. This is done automatically within the script. There is likely no need to manually override the automatically calculated value. I will create a video that demonstrates the manual override method.
Should you update to Pinescript version 4? You could but if you do you will need to change the "plotchar" criteria since this script will exceed the 64 plot limit when converted to version 4. Version 4 would also allow the zigzags lines to be straight lines. However, the 50 label and line plot limit (Pinescript calls this resource sparing feature "garbage collection") significantly truncates the screen available information provided on screen. This algo optionally allows the plotting of zigzags as calculated by the original WWV_LB script. Toggling between the two script versions allows you to see the zigzag plot differences. I have also made some modifications to the original WWV_LB histogram script to adjust the pivot points.This zigzag script should be used in conjunction with the "WWV_LB pivot fix histogram jayy" shown in the panel below the main screen.
Here is a link to the original LazyBear histogram script which can be used for comparison. The differences are subtle, however, the histograms will regularly be different by a bar or two:
The lowest panel has the original LazyBear WWV_LB script for comparison. All three scripts have been set to a Trend Detection Length of 3.
jayy